@Test public void parse_format_custom() { DateOptionFieldAdapter adapter = DateOptionFieldAdapter.builder() .withDateFormat("yyyy -- MM -- dd") .build(); equivalent(adapter, "2016 -- 12 -- 31", new DateOption(new Date(2016, 12, 31))); equivalent(adapter, "2017 -- 01 -- 01", new DateOption(new Date(2017, 1, 1))); equivalent(adapter, "2017 -- 01 -- 02", new DateOption(new Date(2017, 1, 2))); }
public static Builder builder() { return new Builder(); }
DateOptionFieldAdapter extends ValueOptionFieldAdapter<DateOption> { public static Builder builder() { return new Builder(); } }
DateOptionFieldAdapter extends ValueOptionFieldAdapter<DateOption> { public static Builder builder() { return new Builder(); } DateOptionFieldAdapter(String nullFormat, String dateFormat); }
DateOptionFieldAdapter extends ValueOptionFieldAdapter<DateOption> { public static Builder builder() { return new Builder(); } DateOptionFieldAdapter(String nullFormat, String dateFormat); static Builder builder(); }
DateOptionFieldAdapter extends ValueOptionFieldAdapter<DateOption> { public static Builder builder() { return new Builder(); } DateOptionFieldAdapter(String nullFormat, String dateFormat); static Builder builder(); static final String DEFAULT_FORMAT; }