@Test(expectedExceptions = IllegalArgumentException.class) public void testParseIntervalSetBadDateFormat2() { IntervalsParser.parseIntervalSet("[2015-01-35, 2015-01-31]"); }
public static IntervalSet parseIntervalSet(String input, DateTimeZone timeZone) throws IllegalArgumentException { if (input == null) { return null; } if (input.equalsIgnoreCase(EMPTY_VALUE)) { return new IntervalSet(); } List<IntervalWithValue<Object>> intervals; try { intervals = parseIntervals(null, input, timeZone); } catch (IOException ex) { throw new RuntimeException("Unexpected expection while parsing intervals", ex); } IntervalSet result = new IntervalSet(intervals.size()); for (IntervalWithValue<Object> interval : intervals) { result.add(interval.getInterval()); } return result; }
IntervalsParser { public static IntervalSet parseIntervalSet(String input, DateTimeZone timeZone) throws IllegalArgumentException { if (input == null) { return null; } if (input.equalsIgnoreCase(EMPTY_VALUE)) { return new IntervalSet(); } List<IntervalWithValue<Object>> intervals; try { intervals = parseIntervals(null, input, timeZone); } catch (IOException ex) { throw new RuntimeException("Unexpected expection while parsing intervals", ex); } IntervalSet result = new IntervalSet(intervals.size()); for (IntervalWithValue<Object> interval : intervals) { result.add(interval.getInterval()); } return result; } }
IntervalsParser { public static IntervalSet parseIntervalSet(String input, DateTimeZone timeZone) throws IllegalArgumentException { if (input == null) { return null; } if (input.equalsIgnoreCase(EMPTY_VALUE)) { return new IntervalSet(); } List<IntervalWithValue<Object>> intervals; try { intervals = parseIntervals(null, input, timeZone); } catch (IOException ex) { throw new RuntimeException("Unexpected expection while parsing intervals", ex); } IntervalSet result = new IntervalSet(intervals.size()); for (IntervalWithValue<Object> interval : intervals) { result.add(interval.getInterval()); } return result; }  }
IntervalsParser { public static IntervalSet parseIntervalSet(String input, DateTimeZone timeZone) throws IllegalArgumentException { if (input == null) { return null; } if (input.equalsIgnoreCase(EMPTY_VALUE)) { return new IntervalSet(); } List<IntervalWithValue<Object>> intervals; try { intervals = parseIntervals(null, input, timeZone); } catch (IOException ex) { throw new RuntimeException("Unexpected expection while parsing intervals", ex); } IntervalSet result = new IntervalSet(intervals.size()); for (IntervalWithValue<Object> interval : intervals) { result.add(interval.getInterval()); } return result; }  static IntervalSet parseIntervalSet(String input, DateTimeZone timeZone); static IntervalSet parseIntervalSet(String input); static IntervalMap<T> parseIntervalMap(Class<T> typeClass, String input, DateTimeZone timeZone); static IntervalMap<T> parseIntervalMap(Class<T> typeClass, String input); }
IntervalsParser { public static IntervalSet parseIntervalSet(String input, DateTimeZone timeZone) throws IllegalArgumentException { if (input == null) { return null; } if (input.equalsIgnoreCase(EMPTY_VALUE)) { return new IntervalSet(); } List<IntervalWithValue<Object>> intervals; try { intervals = parseIntervals(null, input, timeZone); } catch (IOException ex) { throw new RuntimeException("Unexpected expection while parsing intervals", ex); } IntervalSet result = new IntervalSet(intervals.size()); for (IntervalWithValue<Object> interval : intervals) { result.add(interval.getInterval()); } return result; }  static IntervalSet parseIntervalSet(String input, DateTimeZone timeZone); static IntervalSet parseIntervalSet(String input); static IntervalMap<T> parseIntervalMap(Class<T> typeClass, String input, DateTimeZone timeZone); static IntervalMap<T> parseIntervalMap(Class<T> typeClass, String input);  }