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