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 IlvTimeIncrementPolicy
calendar
- The calendar to floor.public void incrementTime(Calendar calendar)
Calendar
upwards by
secondStep seconds.incrementTime
in interface IlvTimeIncrementPolicy
calendar
- The calendar to increment.public void decrementTime(Calendar calendar)
Calendar
downwards by
secondStep seconds.decrementTime
in interface IlvTimeIncrementPolicy
calendar
- The calendar to decrement.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.