@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(java.util.Locale locale,
java.text.DateFormat format) |
TimeFormatter(java.util.Locale locale,
java.lang.String pattern) |
TimeFormatter(java.util.Locale locale,
TimeFormatter.Pattern pattern) |
| Modifier and Type | Method and Description |
|---|---|
protected java.text.DateFormat |
evaluate(java.util.Locale locale,
java.lang.String pattern) |
void |
format(java.lang.Object value,
java.io.Writer to) |
protected java.text.DateFormat |
getFormat() |
static FormatterFactory<TimeFormatter> |
timeFormatterFactory() |
java.lang.String |
toString() |
getLocalepublic TimeFormatter(@Nonnull
java.util.Locale locale,
@Nullable
java.text.DateFormat format)
public TimeFormatter(@Nonnull
java.util.Locale locale,
@Nullable
TimeFormatter.Pattern pattern)
public TimeFormatter(@Nonnull
java.util.Locale locale,
@Nullable
java.lang.String pattern)
@Nonnull public static FormatterFactory<TimeFormatter> timeFormatterFactory()
public void format(@Nullable
java.lang.Object value,
@Nonnull
java.io.Writer to)
throws java.io.IOException
java.io.IOException@Nonnull
protected java.text.DateFormat evaluate(@Nonnull
java.util.Locale locale,
@Nullable
java.lang.String pattern)
@Nonnull protected java.text.DateFormat getFormat()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015 echocat. All Rights Reserved.