public static class IlvTimeIncrementPolicy.Second extends Object implements IlvTimeIncrementPolicy
IlvTimeIncrementPolicy.Second implements a strategy for stepping through
discrete second increments.IlvTimeIncrementPolicy.Day, IlvTimeIncrementPolicy.HalfDay, IlvTimeIncrementPolicy.Hour, IlvTimeIncrementPolicy.Minute, IlvTimeIncrementPolicy.Month, IlvTimeIncrementPolicy.Second, IlvTimeIncrementPolicy.Week, IlvTimeIncrementPolicy.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.
|
public int getSecondStep()
1.setSecondStep(int)public void setSecondStep(int secondStep)
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 IlvTimeIncrementPolicycalendar - The calendar to floor.public void incrementTime(Calendar calendar)
Calendar upwards by
secondStep seconds.incrementTime in interface IlvTimeIncrementPolicycalendar - The calendar to increment.public void decrementTime(Calendar calendar)
Calendar downwards by
secondStep seconds.decrementTime in interface IlvTimeIncrementPolicycalendar - The calendar to decrement.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.