@Test public void testCreateDefaultFormatSupplier() { ThreadLocal<DateFormat> supplierA = DateFormatSupplier.createDefaultFormatSupplier(); ThreadLocal<DateFormat> supplierB = DateFormatSupplier.createDefaultFormatSupplier(); assertSuppliersIndependent(supplierA, supplierB); }
public static DateFormatSupplier createDefaultFormatSupplier() { return new DateFormatSupplier() { @Override protected DateFormat initialValue() { return new FormatterConfig.DefaultDateFormat(); } }; }
DateFormatSupplier extends ThreadLocal<DateFormat> implements Supplier<DateFormat> { public static DateFormatSupplier createDefaultFormatSupplier() { return new DateFormatSupplier() { @Override protected DateFormat initialValue() { return new FormatterConfig.DefaultDateFormat(); } }; } }
DateFormatSupplier extends ThreadLocal<DateFormat> implements Supplier<DateFormat> { public static DateFormatSupplier createDefaultFormatSupplier() { return new DateFormatSupplier() { @Override protected DateFormat initialValue() { return new FormatterConfig.DefaultDateFormat(); } }; } DateFormatSupplier();  DateFormatSupplier(TimeZone timeZone); }
DateFormatSupplier extends ThreadLocal<DateFormat> implements Supplier<DateFormat> { public static DateFormatSupplier createDefaultFormatSupplier() { return new DateFormatSupplier() { @Override protected DateFormat initialValue() { return new FormatterConfig.DefaultDateFormat(); } }; } DateFormatSupplier();  DateFormatSupplier(TimeZone timeZone); TimeZone getTimeZone(); void setTimeZone(TimeZone timeZone); @Override DateFormat get(); static DateFormatSupplier createDefaultFormatSupplier(); static DateFormatSupplier createSimpleFormatSupplier(final String dateFormat); static DateFormatSupplier createSimpleFormatSupplier(final String dateFormat,
      final TimeZone timeZone); }
DateFormatSupplier extends ThreadLocal<DateFormat> implements Supplier<DateFormat> { public static DateFormatSupplier createDefaultFormatSupplier() { return new DateFormatSupplier() { @Override protected DateFormat initialValue() { return new FormatterConfig.DefaultDateFormat(); } }; } DateFormatSupplier();  DateFormatSupplier(TimeZone timeZone); TimeZone getTimeZone(); void setTimeZone(TimeZone timeZone); @Override DateFormat get(); static DateFormatSupplier createDefaultFormatSupplier(); static DateFormatSupplier createSimpleFormatSupplier(final String dateFormat); static DateFormatSupplier createSimpleFormatSupplier(final String dateFormat,
      final TimeZone timeZone); static final String HUMAN_READABLE_FORMAT; }