Package com.squarespace.cldrengine.api
Enum DateFieldType
- java.lang.Object
-
- java.lang.Enum<DateFieldType>
-
- com.squarespace.cldrengine.api.DateFieldType
-
- All Implemented Interfaces:
StringEnum<DateFieldType>
,java.io.Serializable
,java.lang.Comparable<DateFieldType>
public enum DateFieldType extends java.lang.Enum<DateFieldType> implements StringEnum<DateFieldType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DateFieldType
fromString(java.lang.String s)
java.lang.String
value()
static DateFieldType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DateFieldType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ERA
public static final DateFieldType ERA
-
YEAR
public static final DateFieldType YEAR
-
QUARTER
public static final DateFieldType QUARTER
-
MONTH
public static final DateFieldType MONTH
-
WEEK
public static final DateFieldType WEEK
-
WEEKDAY
public static final DateFieldType WEEKDAY
-
WEEKDAYOFMONTH
public static final DateFieldType WEEKDAYOFMONTH
-
SUN
public static final DateFieldType SUN
-
MON
public static final DateFieldType MON
-
TUE
public static final DateFieldType TUE
-
WED
public static final DateFieldType WED
-
THU
public static final DateFieldType THU
-
FRI
public static final DateFieldType FRI
-
SAT
public static final DateFieldType SAT
-
DAY
public static final DateFieldType DAY
-
DAYPERIOD
public static final DateFieldType DAYPERIOD
-
HOUR
public static final DateFieldType HOUR
-
MINUTE
public static final DateFieldType MINUTE
-
SECOND
public static final DateFieldType SECOND
-
ZONE
public static final DateFieldType ZONE
-
-
Method Detail
-
values
public static DateFieldType[] 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 (DateFieldType c : DateFieldType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateFieldType 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<DateFieldType>
-
fromString
public static DateFieldType fromString(java.lang.String s)
-
-