public enum EnumTimeFormat extends Enum<EnumTimeFormat>
| Enum Constant and Description |
|---|
HOURS_12
Time in the 12h format.
|
HOURS_12_WITH_SECONDS
Time in the 12h format, with seconds.
|
HOURS_24
Time in the 24h format.
|
HOURS_24_WITH_SECONDS
Time in the 24h format, with seconds.
|
LOCAL_TIME
Time defined in the session locale format.
|
LOCAL_TIME_WITH_SECONDS
Time defined in the session locale format, with seconds.
|
| Modifier and Type | Method and Description |
|---|---|
static EnumTimeFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnumTimeFormat |
valueOfTrimmed(String format) |
static EnumTimeFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumTimeFormat LOCAL_TIME
public static final EnumTimeFormat HOURS_24
public static final EnumTimeFormat HOURS_12
public static final EnumTimeFormat LOCAL_TIME_WITH_SECONDS
public static final EnumTimeFormat HOURS_24_WITH_SECONDS
public static final EnumTimeFormat HOURS_12_WITH_SECONDS
public static EnumTimeFormat[] values()
for (EnumTimeFormat c : EnumTimeFormat.values()) System.out.println(c);
public static EnumTimeFormat 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 static EnumTimeFormat valueOfTrimmed(String format)
Copyright © 2020 Samply Community. All rights reserved.