@Test public void testPeriodicity() { { RollingCalendar rc = new RollingCalendar("yyyy-MM-dd_HH_mm_ss"); assertEquals(PeriodicityType.TOP_OF_SECOND, rc.getPeriodicityType()); } { RollingCalendar rc = new RollingCalendar("yyyy-MM-dd_HH_mm"); assertEquals(PeriodicityType.TOP_OF_MINUTE, rc.getPeriodicityType()); } { RollingCalendar rc = new RollingCalendar("yyyy-MM-dd_HH"); assertEquals(PeriodicityType.TOP_OF_HOUR, rc.getPeriodicityType()); } { RollingCalendar rc = new RollingCalendar("yyyy-MM-dd_hh"); assertEquals(PeriodicityType.TOP_OF_HOUR, rc.getPeriodicityType()); } { RollingCalendar rc = new RollingCalendar("yyyy-MM-dd"); assertEquals(PeriodicityType.TOP_OF_DAY, rc.getPeriodicityType()); } { RollingCalendar rc = new RollingCalendar("yyyy-MM"); assertEquals(PeriodicityType.TOP_OF_MONTH, rc.getPeriodicityType()); } { RollingCalendar rc = new RollingCalendar("yyyy-ww"); assertEquals(PeriodicityType.TOP_OF_WEEK, rc.getPeriodicityType()); } { RollingCalendar rc = new RollingCalendar("yyyy-WW"); assertEquals(PeriodicityType.TOP_OF_WEEK, rc.getPeriodicityType()); } }
public PeriodicityType getPeriodicityType() { return periodicityType; }
RollingCalendar extends GregorianCalendar { public PeriodicityType getPeriodicityType() { return periodicityType; } }
RollingCalendar extends GregorianCalendar { public PeriodicityType getPeriodicityType() { return periodicityType; } RollingCalendar(String datePattern);  RollingCalendar(String datePattern, TimeZone tz, Locale locale); }
RollingCalendar extends GregorianCalendar { public PeriodicityType getPeriodicityType() { return periodicityType; } RollingCalendar(String datePattern);  RollingCalendar(String datePattern, TimeZone tz, Locale locale); PeriodicityType getPeriodicityType(); PeriodicityType computePeriodicityType(); boolean isCollisionFree(); void printPeriodicity(ContextAwareBase cab); long periodBarriersCrossed(long start, long end); static int diffInMonths(long startTime, long endTime); Date getEndOfNextNthPeriod(Date now, int periods); Date getNextTriggeringDate(Date now); long getStartOfCurrentPeriodWithGMTOffsetCorrection(long now, TimeZone timezone); }
RollingCalendar extends GregorianCalendar { public PeriodicityType getPeriodicityType() { return periodicityType; } RollingCalendar(String datePattern);  RollingCalendar(String datePattern, TimeZone tz, Locale locale); PeriodicityType getPeriodicityType(); PeriodicityType computePeriodicityType(); boolean isCollisionFree(); void printPeriodicity(ContextAwareBase cab); long periodBarriersCrossed(long start, long end); static int diffInMonths(long startTime, long endTime); Date getEndOfNextNthPeriod(Date now, int periods); Date getNextTriggeringDate(Date now); long getStartOfCurrentPeriodWithGMTOffsetCorrection(long now, TimeZone timezone);  }