public static enum TimeFormatter.Pattern extends Enum<TimeFormatter.Pattern>
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
DateFormat |
toFormat(Locale locale) |
String |
toString() |
static TimeFormatter.Pattern |
valueOf(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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<TimeFormatter.Pattern>@Nonnull public DateFormat toFormat(@Nonnull Locale locale)
Copyright © 2023 echocat. All rights reserved.