public class RollingCalendar extends GregorianCalendar
TimeBasedRollingPolicy or similar
timed-based rolling policies. Given a periodicity type and the current time,
it computes the start of the next interval (i.e. the triggering date).AD, BCALL_STYLES, AM, AM_PM, APRIL, areFieldsSet, AUGUST, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DECEMBER, DST_OFFSET, ERA, FEBRUARY, FIELD_COUNT, fields, FRIDAY, HOUR, HOUR_OF_DAY, isSet, isTimeSet, JANUARY, JULY, JUNE, LONG, MARCH, MAY, MILLISECOND, MINUTE, MONDAY, MONTH, NOVEMBER, OCTOBER, PM, SATURDAY, SECOND, SEPTEMBER, SHORT, SUNDAY, THURSDAY, time, TUESDAY, UNDECIMBER, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, YEAR, ZONE_OFFSET| Constructor and Description |
|---|
RollingCalendar(String datePattern) |
RollingCalendar(String datePattern,
TimeZone tz,
Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
PeriodicityType |
computePeriodicityType() |
static int |
diffInMonths(long startTime,
long endTime) |
Date |
getEndOfNextNthPeriod(Date now,
int periods) |
Date |
getNextTriggeringDate(Date now) |
PeriodicityType |
getPeriodicityType() |
boolean |
isCollisionFree() |
long |
periodsElapsed(long start,
long end) |
void |
printPeriodicity(ContextAwareBase cab) |
add, clone, computeFields, computeTime, equals, getActualMaximum, getActualMinimum, getGreatestMinimum, getGregorianChange, getLeastMaximum, getMaximum, getMinimum, getTimeZone, getWeeksInWeekYear, getWeekYear, hashCode, isLeapYear, isWeekDateSupported, roll, roll, setGregorianChange, setTimeZone, setWeekDateafter, before, clear, clear, compareTo, complete, get, getAvailableLocales, getDisplayName, getDisplayNames, getFirstDayOfWeek, getInstance, getInstance, getInstance, getInstance, getMinimalDaysInFirstWeek, getTime, getTimeInMillis, internalGet, isLenient, isSet, set, set, set, set, setFirstDayOfWeek, setLenient, setMinimalDaysInFirstWeek, setTime, setTimeInMillis, toStringpublic RollingCalendar(String datePattern)
public PeriodicityType getPeriodicityType()
public PeriodicityType computePeriodicityType()
public boolean isCollisionFree()
public void printPeriodicity(ContextAwareBase cab)
public long periodsElapsed(long start,
long end)
public static int diffInMonths(long startTime,
long endTime)
Copyright © 2005–2016 QOS.ch. All rights reserved.