public interface IlvTimeIncrementPolicy
IlvTimeIncrementPolicy
defines a strategy for stepping through discrete
time increments. An implementation of IlvTimeIncrementPolicy
can be used
to parameterize an IlvTimeIterator
.Modifier and Type | Interface and Description |
---|---|
static class |
IlvTimeIncrementPolicy.Day
IlvTimeIncrementPolicy.Day implements a strategy for stepping through
discrete day increments. |
static class |
IlvTimeIncrementPolicy.HalfDay
IlvTimeIncrementPolicy.HalfDay implements a strategy for stepping through
discrete half-day increments. |
static class |
IlvTimeIncrementPolicy.Hour
IlvTimeIncrementPolicy.Hour implements a strategy for stepping through
discrete hour increments. |
static class |
IlvTimeIncrementPolicy.Minute
IlvTimeIncrementPolicy.Minute implements a strategy for stepping through
discrete minute increments. |
static class |
IlvTimeIncrementPolicy.Month
IlvTimeIncrementPolicy.Month implements a strategy for stepping through
discrete month increments. |
static class |
IlvTimeIncrementPolicy.Second
IlvTimeIncrementPolicy.Second implements a strategy for stepping through
discrete second increments. |
static class |
IlvTimeIncrementPolicy.Week
IlvTimeIncrementPolicy.Week implements a strategy for stepping through
discrete week increments. |
static class |
IlvTimeIncrementPolicy.Year
IlvTimeIncrementPolicy.Year implements a strategy for stepping through
discrete year increments. |
Modifier and Type | Method and Description |
---|---|
void |
decrementTime(Calendar calendar)
Decrements the given
Calendar downwards to the previous time increment
boundary. |
void |
floorTime(Calendar calendar)
Truncates the given
Calendar downwards to the nearest time increment
boundary. |
void |
incrementTime(Calendar calendar)
Increments the given
Calendar upwards to the next time increment
boundary. |
void floorTime(Calendar calendar)
Calendar
downwards to the nearest time increment
boundary. For example, in a minute-unit time increment policy, the floor time of
January 14th, 2001, 8:12:34 is January 14th, 2001, 8:12:00 and the floor time of
January 14th, 2001, 9:01:00 is January 14th, 2001, 9:01:00.calendar
- The calendar to floor.void incrementTime(Calendar calendar)
Calendar
upwards to the next time increment
boundary. It is assumed that the given Calendar
is already on a time
increment boundary, such as the result of calling floorTime(java.util.Calendar)
. If not,
the results of this method are undefined.calendar
- The calendar to increment, which must be on a time increment
boundary.void decrementTime(Calendar calendar)
Calendar
downwards to the previous time increment
boundary. It is assumed that the given Calendar
is already on a time
increment boundary, such as the result of calling floorTime(java.util.Calendar)
. If not,
the results of this method are undefined.calendar
- The calendar to decrement, which must be on a time increment
boundary.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.