@Test public void shouldFailToParseIfCannotParseRepetitionsCount() { final String text = "RA,/PT05S"; assertThatThrownBy(() -> RepeatingInterval.parse(text)) .isInstanceOf(DateTimeParseException.class); }
public static RepeatingInterval parse(final String text) { return parse(text, INTERVAL_DESGINATOR); }
RepeatingInterval implements Timer { public static RepeatingInterval parse(final String text) { return parse(text, INTERVAL_DESGINATOR); } }
RepeatingInterval implements Timer { public static RepeatingInterval parse(final String text) { return parse(text, INTERVAL_DESGINATOR); } RepeatingInterval(final int repetitions, final Interval interval); }
RepeatingInterval implements Timer { public static RepeatingInterval parse(final String text) { return parse(text, INTERVAL_DESGINATOR); } RepeatingInterval(final int repetitions, final Interval interval); @Override Interval getInterval(); @Override int getRepetitions(); @Override long getDueDate(final long fromEpochMillis); @Override int hashCode(); @Override boolean equals(final Object o); static RepeatingInterval parse(final String text); static RepeatingInterval parse(final String text, final String intervalDesignator); }
RepeatingInterval implements Timer { public static RepeatingInterval parse(final String text) { return parse(text, INTERVAL_DESGINATOR); } RepeatingInterval(final int repetitions, final Interval interval); @Override Interval getInterval(); @Override int getRepetitions(); @Override long getDueDate(final long fromEpochMillis); @Override int hashCode(); @Override boolean equals(final Object o); static RepeatingInterval parse(final String text); static RepeatingInterval parse(final String text, final String intervalDesignator); static final String INTERVAL_DESGINATOR; static final int INFINITE; }