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