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