@Test public void parse_format_default() { DateTimeOptionFieldAdapter adapter = DateTimeOptionFieldAdapter.builder() .withDateTimeFormat("yyyy'x'MM'x'dd'y'HH'z'mm'z'ss") .build(); equivalent(adapter, "2016x12x31y12z34z56", new DateTimeOption(dt(2016, 12, 31, 12, 34, 56))); equivalent(adapter, "2017x01x01y12z34z56", new DateTimeOption(dt(2017, 1, 1, 12, 34, 56))); equivalent(adapter, "2017x01x02y12z34z56", new DateTimeOption(dt(2017, 1, 2, 12, 34, 56))); }
public static Builder builder() { return new Builder(); }
DateTimeOptionFieldAdapter extends ValueOptionFieldAdapter<DateTimeOption> { public static Builder builder() { return new Builder(); } }
DateTimeOptionFieldAdapter extends ValueOptionFieldAdapter<DateTimeOption> { public static Builder builder() { return new Builder(); } DateTimeOptionFieldAdapter(String nullFormat, String dateTimeFormat, String timeZone); }
DateTimeOptionFieldAdapter extends ValueOptionFieldAdapter<DateTimeOption> { public static Builder builder() { return new Builder(); } DateTimeOptionFieldAdapter(String nullFormat, String dateTimeFormat, String timeZone); static Builder builder(); }
DateTimeOptionFieldAdapter extends ValueOptionFieldAdapter<DateTimeOption> { public static Builder builder() { return new Builder(); } DateTimeOptionFieldAdapter(String nullFormat, String dateTimeFormat, String timeZone); static Builder builder(); static final String DEFAULT_FORMAT; }