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