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