public static enum DateFormatter.Pattern extends Enum<DateFormatter.Pattern>
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
DateFormat |
toFormat(Locale locale) |
String |
toString() |
static DateFormatter.Pattern |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateFormatter.Pattern[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateFormatter.Pattern DEFAULT
public static final DateFormatter.Pattern SHORT
public static final DateFormatter.Pattern MEDIUM
public static final DateFormatter.Pattern LONG
public static final DateFormatter.Pattern FULL
public static DateFormatter.Pattern[] values()
for (DateFormatter.Pattern c : DateFormatter.Pattern.values()) System.out.println(c);
public static DateFormatter.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<DateFormatter.Pattern>@Nonnull public DateFormat toFormat(@Nonnull Locale locale)
Copyright © 2024 echocat. All rights reserved.