Package com.squarespace.cldrengine.api
Enum DayPeriodType
- java.lang.Object
-
- java.lang.Enum<DayPeriodType>
-
- com.squarespace.cldrengine.api.DayPeriodType
-
- All Implemented Interfaces:
StringEnum<DayPeriodType>
,java.io.Serializable
,java.lang.Comparable<DayPeriodType>
public enum DayPeriodType extends java.lang.Enum<DayPeriodType> implements StringEnum<DayPeriodType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DayPeriodType
fromString(java.lang.String s)
java.lang.String
value()
static DayPeriodType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DayPeriodType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOON
public static final DayPeriodType NOON
-
MIDNIGHT
public static final DayPeriodType MIDNIGHT
-
AM
public static final DayPeriodType AM
-
PM
public static final DayPeriodType PM
-
MORNING1
public static final DayPeriodType MORNING1
-
MORNING2
public static final DayPeriodType MORNING2
-
AFTERNOON1
public static final DayPeriodType AFTERNOON1
-
AFTERNOON2
public static final DayPeriodType AFTERNOON2
-
EVENING1
public static final DayPeriodType EVENING1
-
EVENING2
public static final DayPeriodType EVENING2
-
NIGHT1
public static final DayPeriodType NIGHT1
-
NIGHT2
public static final DayPeriodType NIGHT2
-
-
Method Detail
-
values
public static DayPeriodType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DayPeriodType c : DayPeriodType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DayPeriodType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
value
public java.lang.String value()
- Specified by:
value
in interfaceStringEnum<DayPeriodType>
-
fromString
public static DayPeriodType fromString(java.lang.String s)
-
-