@Test public void check_dayOfWeek_list() throws Exception { assertThat(new CronExpression("0 0 0 * * 1,5,7").nextTimeAfter(new DateTime(2012, 4, 1, 00, 00))).isEqualTo(new DateTime(2012, 4, 2, 00, 00)); assertThat(new CronExpression("0 0 0 * * 1,5,7").nextTimeAfter(new DateTime(2012, 4, 2, 00, 00))).isEqualTo(new DateTime(2012, 4, 6, 00, 00)); assertThat(new CronExpression("0 0 0 * * 1,5,7").nextTimeAfter(new DateTime(2012, 4, 6, 00, 00))).isEqualTo(new DateTime(2012, 4, 8, 00, 00)); }
public DateTime nextTimeAfter(DateTime afterTime) { return nextTimeAfter(afterTime, afterTime.plusYears(4)); }
CronExpression { public DateTime nextTimeAfter(DateTime afterTime) { return nextTimeAfter(afterTime, afterTime.plusYears(4)); } }
CronExpression { public DateTime nextTimeAfter(DateTime afterTime) { return nextTimeAfter(afterTime, afterTime.plusYears(4)); } CronExpression(final String expr);  CronExpression(final String expr, final boolean withSeconds); }
CronExpression { public DateTime nextTimeAfter(DateTime afterTime) { return nextTimeAfter(afterTime, afterTime.plusYears(4)); } CronExpression(final String expr);  CronExpression(final String expr, final boolean withSeconds); static CronExpression create(final String expr); static CronExpression createWithoutSeconds(final String expr); DateTime nextTimeAfter(DateTime afterTime); DateTime nextTimeAfter(DateTime afterTime, long durationInMillis); DateTime nextTimeAfter(DateTime afterTime, DateTime dateTimeBarrier); @Override String toString(); }
CronExpression { public DateTime nextTimeAfter(DateTime afterTime) { return nextTimeAfter(afterTime, afterTime.plusYears(4)); } CronExpression(final String expr);  CronExpression(final String expr, final boolean withSeconds); static CronExpression create(final String expr); static CronExpression createWithoutSeconds(final String expr); DateTime nextTimeAfter(DateTime afterTime); DateTime nextTimeAfter(DateTime afterTime, long durationInMillis); DateTime nextTimeAfter(DateTime afterTime, DateTime dateTimeBarrier); @Override String toString();  }