@Test public void alternativePayloadTest() { TemporalRangeParser trp = TemporalRangeParser.builder().create(); EventRange range = trp.parse("1999", "1", "2", "01/02/1999"); assertEquals("1999-01-02", range.getFrom().get().toString()); assertFalse(range.getTo().isPresent()); range = trp.parse("1999", "1", null, "01/02/1999"); assertEquals("1999-01-02", range.getFrom().get().toString()); assertFalse(range.getTo().isPresent()); }
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);  }