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