public static class IlvTimeIncrementPolicy.HalfDay extends Object implements IlvTimeIncrementPolicy
IlvTimeIncrementPolicy.HalfDay
implements a strategy for stepping through
discrete half-day increments.IlvTimeIncrementPolicy.Day, IlvTimeIncrementPolicy.HalfDay, IlvTimeIncrementPolicy.Hour, IlvTimeIncrementPolicy.Minute, IlvTimeIncrementPolicy.Month, IlvTimeIncrementPolicy.Second, IlvTimeIncrementPolicy.Week, IlvTimeIncrementPolicy.Year
Constructor and Description |
---|
HalfDay()
Creates a new
IlvTimeIncrementPolicy.HalfDay policy. |
Modifier and Type | Method and Description |
---|---|
void |
decrementTime(Calendar calendar)
Decrements the given
Calendar downwards by a half-day. |
void |
floorTime(Calendar calendar)
Truncates the given
Calendar downwards to the nearest
half-day boundary. |
void |
incrementTime(Calendar calendar)
Increments the given
Calendar upwards by a half-day. |
public void floorTime(Calendar calendar)
Calendar
downwards to the nearest
half-day boundary.floorTime
in interface IlvTimeIncrementPolicy
calendar
- The calendar to floor.public void incrementTime(Calendar calendar)
Calendar
upwards by a half-day.incrementTime
in interface IlvTimeIncrementPolicy
calendar
- The calendar to increment.public void decrementTime(Calendar calendar)
Calendar
downwards by a half-day.decrementTime
in interface IlvTimeIncrementPolicy
calendar
- The calendar to decrement.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.