@Test public final void testXmas() { final CronSchedule schedule = new CronSchedule(EVERY_XMAS); final LocalDateTime match1 = LocalDateTime.of(2017, Month.DECEMBER, 25, 0, 0); Assert.assertTrue(schedule.matches(match1)); final LocalDateTime noMatch1 = LocalDateTime.of(2017, Month.DECEMBER, 26, 0, 0); Assert.assertFalse(schedule.matches(noMatch1)); }
public final boolean matches(final long timeStamp) { return matches(LocalDateTime.from(Instant.ofEpochMilli(timeStamp))); }
CronSchedule { public final boolean matches(final long timeStamp) { return matches(LocalDateTime.from(Instant.ofEpochMilli(timeStamp))); } }
CronSchedule { public final boolean matches(final long timeStamp) { return matches(LocalDateTime.from(Instant.ofEpochMilli(timeStamp))); } CronSchedule();  CronSchedule(String schedule);  CronSchedule(String min, String hour, String dom, String mon, String dow); }
CronSchedule { public final boolean matches(final long timeStamp) { return matches(LocalDateTime.from(Instant.ofEpochMilli(timeStamp))); } CronSchedule();  CronSchedule(String schedule);  CronSchedule(String min, String hour, String dom, String mon, String dow); String set(String schedule); void set(final ChronoField field, final String values); final String get(final ChronoField type); @Override String toString(); final boolean matches(final long timeStamp); final boolean matches(final LocalDateTime instant); final boolean isMinute(final long timeStamp); final boolean isMinute(final LocalDateTime instant); final boolean isHour(long timeStamp); final boolean isHour(final LocalDateTime instant); final boolean isDay(final long timeStamp); final boolean isDay(final LocalDateTime instant); }
CronSchedule { public final boolean matches(final long timeStamp) { return matches(LocalDateTime.from(Instant.ofEpochMilli(timeStamp))); } CronSchedule();  CronSchedule(String schedule);  CronSchedule(String min, String hour, String dom, String mon, String dow); String set(String schedule); void set(final ChronoField field, final String values); final String get(final ChronoField type); @Override String toString(); final boolean matches(final long timeStamp); final boolean matches(final LocalDateTime instant); final boolean isMinute(final long timeStamp); final boolean isMinute(final LocalDateTime instant); final boolean isHour(long timeStamp); final boolean isHour(final LocalDateTime instant); final boolean isDay(final long timeStamp); final boolean isDay(final LocalDateTime instant);  }