@ThreadSafe public class DateFormatter extends FormatterSupport
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DateFormatter.Factory |
static class |
DateFormatter.Pattern |
| Constructor and Description |
|---|
DateFormatter(Locale locale,
DateFormat format) |
DateFormatter(Locale locale,
DateFormatter.Pattern pattern) |
DateFormatter(Locale locale,
String pattern) |
| Modifier and Type | Method and Description |
|---|---|
static FormatterFactory<DateFormatter> |
dateFormatterFactory() |
protected DateFormat |
evaluate(Locale locale,
String pattern) |
void |
format(Object value,
Writer to) |
protected DateFormat |
getFormat() |
String |
toString() |
getLocalepublic DateFormatter(@Nonnull Locale locale, @Nullable DateFormat format)
public DateFormatter(@Nonnull Locale locale, @Nullable DateFormatter.Pattern pattern)
@Nonnull public static FormatterFactory<DateFormatter> dateFormatterFactory()
public void format(@Nullable Object value, @Nonnull Writer to) throws IOException
IOException@Nonnull protected DateFormat getFormat()
Copyright © 2024 echocat. All rights reserved.