public enum TimeConvention extends Enum<TimeConvention>
| Enum Constant and Description |
|---|
AM
ante meridiem (a.m., English: "before midday")
|
PM
post meridiem (p.m., English: "after midday")
|
| Modifier and Type | Method and Description |
|---|---|
static TimeConvention |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeConvention[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeConvention AM
public static final TimeConvention PM
public static TimeConvention[] values()
for (TimeConvention c : TimeConvention.values()) System.out.println(c);
public static TimeConvention 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 © 2016. All rights reserved.