@Test public void teatYMDT() { TemporalRangeParser trp = TemporalRangeParser.builder() .temporalParser(TemporalParser.create(Collections.singletonList(DMY))) .create(); EventRange range = trp.parse("01/03/1930T12:01"); assertFalse(range.getFrom().isPresent()); trp = TemporalRangeParser.builder() .temporalParser(TemporalParser.create(Arrays.asList(DMY, DMYT))) .create(); range = trp.parse("01/03/1930T12:01"); assertEquals("1930-03-01T12:01", range.getFrom().get().toString()); }
public EventRange parse(String dateRange) { return parse(null, null, null, dateRange); }
TemporalRangeParser implements Serializable { public EventRange parse(String dateRange) { return parse(null, null, null, dateRange); } }
TemporalRangeParser implements Serializable { public EventRange parse(String dateRange) { return parse(null, null, null, dateRange); } @Builder(buildMethodName = "create") private  TemporalRangeParser(TemporalParser temporalParser); }
TemporalRangeParser implements Serializable { public EventRange parse(String dateRange) { return parse(null, null, null, dateRange); } @Builder(buildMethodName = "create") private  TemporalRangeParser(TemporalParser temporalParser); EventRange parse(String dateRange); EventRange parse(String year, String month, String day, String dateRange); }
TemporalRangeParser implements Serializable { public EventRange parse(String dateRange) { return parse(null, null, null, dateRange); } @Builder(buildMethodName = "create") private  TemporalRangeParser(TemporalParser temporalParser); EventRange parse(String dateRange); EventRange parse(String year, String month, String day, String dateRange);  }