public static enum TimeFormatter.Pattern extends java.lang.Enum<TimeFormatter.Pattern>
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId() |
java.text.DateFormat |
toFormat(java.util.Locale locale) |
java.lang.String |
toString() |
static TimeFormatter.Pattern |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimeFormatter.Pattern[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeFormatter.Pattern DEFAULT
public static final TimeFormatter.Pattern SHORT
public static final TimeFormatter.Pattern MEDIUM
public static final TimeFormatter.Pattern LONG
public static final TimeFormatter.Pattern FULL
public static TimeFormatter.Pattern[] values()
for (TimeFormatter.Pattern c : TimeFormatter.Pattern.values()) System.out.println(c);
public static TimeFormatter.Pattern valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String toString()
toString in class java.lang.Enum<TimeFormatter.Pattern>@Nonnull
public java.text.DateFormat toFormat(@Nonnull
java.util.Locale locale)
@Nonnull public java.lang.String getId()
Copyright © 2015 echocat. All Rights Reserved.