public static class IlvTimeIncrementPolicy2.Year extends IlvTimeIncrementPolicy.Year implements IlvTimeIncrementPolicy2
IlvTimeIncrementPolicy.Year
implements a strategy for stepping through
discrete year increments.IlvTimeIncrementPolicy2.Day, IlvTimeIncrementPolicy2.HalfDay, IlvTimeIncrementPolicy2.Hour, IlvTimeIncrementPolicy2.Minute, IlvTimeIncrementPolicy2.Month, IlvTimeIncrementPolicy2.Second, IlvTimeIncrementPolicy2.Week, IlvTimeIncrementPolicy2.Year
Constructor and Description |
---|
Year()
Creates a new
IlvTimeIncrementPolicy.Year policy. |
Modifier and Type | Method and Description |
---|---|
void |
decrementTime(Calendar calendar)
Decrements the given
Calendar downwards by
yearStep years. |
void |
floorTime(Calendar calendar)
Truncates the given
Calendar downwards to the nearest
yearStep year boundary. |
int |
getYearStep()
Returns the number of years in a step increment.
|
void |
incrementTime(Calendar calendar)
Increments the given
Calendar upwards by
yearStep years. |
void |
setYearStep(int yearStep)
Sets the number of years in a step increment.
|
decrementTime, floorTime, incrementTime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decrementTime, floorTime, incrementTime
public int getYearStep()
1
.getYearStep
in class IlvTimeIncrementPolicy.Year
setYearStep(int)
public void setYearStep(int yearStep)
setYearStep
in class IlvTimeIncrementPolicy.Year
yearStep
- The number of years in a step increment.getYearStep()
public void floorTime(Calendar calendar)
Calendar
downwards to the nearest
yearStep year boundary.floorTime
in interface IlvTimeIncrementPolicy2
calendar
- The calendar to floor.public void incrementTime(Calendar calendar)
Calendar
upwards by
yearStep years.incrementTime
in interface IlvTimeIncrementPolicy2
calendar
- The calendar to increment.public void decrementTime(Calendar calendar)
Calendar
downwards by
yearStep years.decrementTime
in interface IlvTimeIncrementPolicy2
calendar
- The calendar to decrement.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.