public static enum Preferences.TimeFormat extends java.lang.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(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullCopyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.