public static class IlvTimeIncrementPolicy.Minute extends Object implements IlvTimeIncrementPolicy
IlvTimeIncrementPolicy.Minute
implements a strategy for stepping through
discrete minute increments.IlvTimeIncrementPolicy.Day, IlvTimeIncrementPolicy.HalfDay, IlvTimeIncrementPolicy.Hour, IlvTimeIncrementPolicy.Minute, IlvTimeIncrementPolicy.Month, IlvTimeIncrementPolicy.Second, IlvTimeIncrementPolicy.Week, IlvTimeIncrementPolicy.Year
Constructor and Description |
---|
Minute()
Creates a new
IlvTimeIncrementPolicy.Minute policy. |
Modifier and Type | Method and Description |
---|---|
void |
decrementTime(Calendar calendar)
Decrements the given
Calendar downwards by
minuteStep minutes. |
void |
floorTime(Calendar calendar)
Truncates the given
Calendar downwards to the nearest
minuteStep minute boundary. |
int |
getMinuteStep()
Returns the number of minutes in a step increment.
|
void |
incrementTime(Calendar calendar)
Increments the given
Calendar upwards by
minuteStep minutes. |
void |
setMinuteStep(int minuteStep)
Sets the number of minutes in a step increment.
|
public int getMinuteStep()
1
.setMinuteStep(int)
public void setMinuteStep(int minuteStep)
minuteStep
- The number of minutes in a step increment.getMinuteStep()
public void floorTime(Calendar calendar)
Calendar
downwards to the nearest
minuteStep minute boundary.floorTime
in interface IlvTimeIncrementPolicy
calendar
- The calendar to floor.public void incrementTime(Calendar calendar)
Calendar
upwards by
minuteStep minutes.incrementTime
in interface IlvTimeIncrementPolicy
calendar
- The calendar to increment.public void decrementTime(Calendar calendar)
Calendar
downwards by
minuteStep minutes.decrementTime
in interface IlvTimeIncrementPolicy
calendar
- The calendar to decrement.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.