public enum DayPeriod extends Enum<DayPeriod>
| Enum Constant and Description |
|---|
AM
AM for AM/PM system
|
NONE
Used with 24h systems
|
PM
PM for AM/PM system
|
| Modifier and Type | Method and Description |
|---|---|
static DayPeriod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DayPeriod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DayPeriod AM
public static final DayPeriod PM
public static final DayPeriod NONE
public static DayPeriod[] values()
for (DayPeriod c : DayPeriod.values()) System.out.println(c);
public static DayPeriod 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 © 2019–2022 Dominokit. All rights reserved.