public static enum Preferences.TimeFormat extends Enum<Preferences.TimeFormat>
| Enum Constant and Description |
|---|
DATE
A date format, no time.
|
DATETIME
A date+time format.
|
TIME
A time format, no date.
|
| Modifier and Type | Method and Description |
|---|---|
static Preferences.TimeFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Preferences.TimeFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Preferences.TimeFormat TIME
public static final Preferences.TimeFormat DATE
public static final Preferences.TimeFormat DATETIME
public static Preferences.TimeFormat[] values()
for (Preferences.TimeFormat c : Preferences.TimeFormat.values()) System.out.println(c);
public static Preferences.TimeFormat 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 © 2001-2019 The Apache Software Foundation. All rights reserved.