public static enum InstantFormatter.Type extends Enum<InstantFormatter.Type>
| Enum Constant and Description |
|---|
DATETIME
A formatter that supports the same patterns with
DateTimeFormatter. |
SIMPLE
A formatter that supports the same patterns with
SimpleDateFormat. |
| Modifier and Type | Method and Description |
|---|---|
static InstantFormatter.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InstantFormatter.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InstantFormatter.Type SIMPLE
SimpleDateFormat.public static final InstantFormatter.Type DATETIME
DateTimeFormatter.public static InstantFormatter.Type[] values()
for (InstantFormatter.Type c : InstantFormatter.Type.values()) System.out.println(c);
public static InstantFormatter.Type 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 nullCopyright © 2024 The Apache Software Foundation. All rights reserved.