public enum TemporalFormat extends Enum<TemporalFormat>
LocalizationContext| Enum Constant and Description |
|---|
DEFAULT
Default.
|
FULL
Full style, with the most detail.
|
LONG
Long style, with lots of detail.
|
MEDIUM
Medium style, with some detail.
|
SHORT
Short style, typically numeric.
|
| Modifier and Type | Method and Description |
|---|---|
FormatStyle |
getDateFormatStyle()
Date
FormatStyle |
int |
getDateStyle()
Date
DateFormat style |
FormatStyle |
getTimeFormatStyle()
Time
FormatStyle |
int |
getTimeStyle()
Time
DateFormat style |
static TemporalFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TemporalFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TemporalFormat DEFAULT
public static final TemporalFormat SHORT
public static final TemporalFormat MEDIUM
public static final TemporalFormat LONG
public static final TemporalFormat FULL
public static TemporalFormat[] values()
for (TemporalFormat c : TemporalFormat.values()) System.out.println(c);
public static TemporalFormat 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 FormatStyle getDateFormatStyle()
FormatStyleFormatStylepublic FormatStyle getTimeFormatStyle()
FormatStyleFormatStylepublic int getDateStyle()
DateFormat styleDateFormat stylepublic int getTimeStyle()
DateFormat styleDateFormat styleCopyright © 2019 The Holon Platform. All rights reserved.