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