public static class IlvTimeIncrementPolicy2.Week extends IlvTimeIncrementPolicy.Week implements IlvTimeIncrementPolicy2
IlvTimeIncrementPolicy.Week
implements a strategy for stepping through
discrete week increments.IlvTimeIncrementPolicy2.Day, IlvTimeIncrementPolicy2.HalfDay, IlvTimeIncrementPolicy2.Hour, IlvTimeIncrementPolicy2.Minute, IlvTimeIncrementPolicy2.Month, IlvTimeIncrementPolicy2.Second, IlvTimeIncrementPolicy2.Week, IlvTimeIncrementPolicy2.Year
Constructor and Description |
---|
Week()
Creates a new
IlvTimeIncrementPolicy.Week policy. |
Modifier and Type | Method and Description |
---|---|
void |
decrementTime(com.ibm.icu.util.Calendar calendar)
Decrements the given
Calendar downwards by
weekStep weeks. |
void |
floorTime(com.ibm.icu.util.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(com.ibm.icu.util.Calendar calendar)
Increments the given
Calendar upwards by
weekStep weeks. |
void |
setWeekStep(int weekStep)
Sets the number of weeks in a step increment.
|
decrementTime, floorTime, incrementTime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decrementTime, floorTime, incrementTime
public int getWeekStep()
1
.getWeekStep
in class IlvTimeIncrementPolicy.Week
setWeekStep(int)
public void setWeekStep(int weekStep)
setWeekStep
in class IlvTimeIncrementPolicy.Week
weekStep
- The number of weeks in a step increment.getWeekStep()
public void floorTime(com.ibm.icu.util.Calendar calendar)
Calendar
downwards to the nearest
weekStep week boundary.floorTime
in interface IlvTimeIncrementPolicy2
calendar
- The calendar to floor.public void incrementTime(com.ibm.icu.util.Calendar calendar)
Calendar
upwards by
weekStep weeks.incrementTime
in interface IlvTimeIncrementPolicy2
calendar
- The calendar to increment.public void decrementTime(com.ibm.icu.util.Calendar calendar)
Calendar
downwards by
weekStep weeks.decrementTime
in interface IlvTimeIncrementPolicy2
calendar
- The calendar to decrement.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.