public enum PreparedFormatStyle extends Enum<PreparedFormatStyle> implements ExtFormatStyle
| Enum Constant and Description |
|---|
LONG_DATE |
LONG_DATETIME |
LONG_TIME |
MEDIUM_DATE |
MEDIUM_DATETIME |
MEDIUM_TIME |
SHORT_DATE |
SHORT_DATETIME |
SHORT_TIME |
| Modifier and Type | Method and Description |
|---|---|
DateTimeFormatter |
getFormatter() |
static PreparedFormatStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PreparedFormatStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PreparedFormatStyle LONG_DATE
public static final PreparedFormatStyle LONG_DATETIME
public static final PreparedFormatStyle LONG_TIME
public static final PreparedFormatStyle MEDIUM_DATE
public static final PreparedFormatStyle MEDIUM_DATETIME
public static final PreparedFormatStyle MEDIUM_TIME
public static final PreparedFormatStyle SHORT_DATE
public static final PreparedFormatStyle SHORT_DATETIME
public static final PreparedFormatStyle SHORT_TIME
public static PreparedFormatStyle[] values()
for (PreparedFormatStyle c : PreparedFormatStyle.values()) System.out.println(c);
public static PreparedFormatStyle 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 DateTimeFormatter getFormatter()
getFormatter in interface ExtFormatStyleCopyright © 2022. All rights reserved.