@Test public void testParseToday() { IntervalOfTime today = IntervalOfTime.today().toClosed(); IntervalOfTime dateRange = IntervalOfTimeFormat.parse("T"); assertThat(dateRange.getLow(), is(today.getLow())); assertThat(dateRange.getHigh(), is(today.getHigh())); assertThat(dateRange.isLowClosed(), is(true)); assertThat(dateRange.isHighClosed(), is(true)); dateRange = IntervalOfTimeFormat.parse("Today"); assertThat(dateRange.getLow(), is(today.getLow())); assertThat(dateRange.getHigh(), is(today.getHigh())); assertThat(dateRange.isLowClosed(), is(true)); assertThat(dateRange.isHighClosed(), is(true)); }
public static IntervalOfTime parse(String text) { return getDefault().parseInterval(text); }
IntervalOfTimeFormat { public static IntervalOfTime parse(String text) { return getDefault().parseInterval(text); } }
IntervalOfTimeFormat { public static IntervalOfTime parse(String text) { return getDefault().parseInterval(text); }  }
IntervalOfTimeFormat { public static IntervalOfTime parse(String text) { return getDefault().parseInterval(text); }  static IntervalOfTimeFormatter getDefault(); static IntervalOfTimeFormatter intervalForm(); static IntervalOfTime parse(String text); static IntervalOfTime parseIntervalForm(String text); static String print(IntervalOfTime text); static String printIntervalForm(IntervalOfTime text); static String toString(IntervalOfTime text); }
IntervalOfTimeFormat { public static IntervalOfTime parse(String text) { return getDefault().parseInterval(text); }  static IntervalOfTimeFormatter getDefault(); static IntervalOfTimeFormatter intervalForm(); static IntervalOfTime parse(String text); static IntervalOfTime parseIntervalForm(String text); static String print(IntervalOfTime text); static String printIntervalForm(IntervalOfTime text); static String toString(IntervalOfTime text);  }