public class RollingCalendar
extends java.util.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).ALL_STYLES, AM, AM_PM, APRIL, AUGUST, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DECEMBER, DST_OFFSET, ERA, FEBRUARY, FIELD_COUNT, FRIDAY, HOUR, HOUR_OF_DAY, JANUARY, JULY, JUNE, LONG, LONG_FORMAT, LONG_STANDALONE, MARCH, MAY, MILLISECOND, MINUTE, MONDAY, MONTH, NARROW_FORMAT, NARROW_STANDALONE, NOVEMBER, OCTOBER, PM, SATURDAY, SECOND, SEPTEMBER, SHORT, SHORT_FORMAT, SHORT_STANDALONE, SUNDAY, THURSDAY, TUESDAY, UNDECIMBER, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, YEAR, ZONE_OFFSET
Constructor and Description |
---|
RollingCalendar(java.lang.String datePattern) |
RollingCalendar(java.lang.String datePattern,
java.util.TimeZone tz,
java.util.Locale locale) |
Modifier and Type | Method and Description |
---|---|
PeriodicityType |
computePeriodicityType() |
static int |
diffInMonths(long startTime,
long endTime) |
java.util.Date |
getEndOfNextNthPeriod(java.util.Date now,
int periods) |
java.util.Date |
getNextTriggeringDate(java.util.Date now) |
PeriodicityType |
getPeriodicityType() |
long |
getStartOfCurrentPeriodWithGMTOffsetCorrection(long now,
java.util.TimeZone timezone) |
boolean |
isCollisionFree() |
long |
periodBarriersCrossed(long start,
long end) |
void |
printPeriodicity(ContextAwareBase cab) |
add, clone, equals, from, getActualMaximum, getActualMinimum, getCalendarType, getGreatestMinimum, getGregorianChange, getLeastMaximum, getMaximum, getMinimum, getTimeZone, getWeeksInWeekYear, getWeekYear, hashCode, isLeapYear, isWeekDateSupported, roll, roll, setGregorianChange, setTimeZone, setWeekDate, toZonedDateTime
after, before, clear, clear, compareTo, get, getAvailableCalendarTypes, getAvailableLocales, getDisplayName, getDisplayNames, getFirstDayOfWeek, getInstance, getInstance, getInstance, getInstance, getMinimalDaysInFirstWeek, getTime, getTimeInMillis, isLenient, isSet, set, set, set, set, setFirstDayOfWeek, setLenient, setMinimalDaysInFirstWeek, setTime, setTimeInMillis, toInstant, toString
public RollingCalendar(java.lang.String datePattern)
public RollingCalendar(java.lang.String datePattern, java.util.TimeZone tz, java.util.Locale locale)
public PeriodicityType getPeriodicityType()
public PeriodicityType computePeriodicityType()
public boolean isCollisionFree()
public void printPeriodicity(ContextAwareBase cab)
public long periodBarriersCrossed(long start, long end)
public static int diffInMonths(long startTime, long endTime)
public java.util.Date getEndOfNextNthPeriod(java.util.Date now, int periods)
public java.util.Date getNextTriggeringDate(java.util.Date now)
public long getStartOfCurrentPeriodWithGMTOffsetCorrection(long now, java.util.TimeZone timezone)
Copyright © 2010 - 2020 Adobe. All Rights Reserved