@Test public void testParseIntervalExpressionRelativeToNow() { IntervalOfTime dateRange = IntervalOfTimeFormat.parse("NOW-9d..NOW"); assertThat(dateRange.getLow(), is(mockNow.subtractDays(9))); assertThat(dateRange.getHigh(), is(mockNow)); 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);  }