Package com.squarespace.cldrengine.api
Enum DateFieldWidthType
- java.lang.Object
-
- java.lang.Enum<DateFieldWidthType>
-
- com.squarespace.cldrengine.api.DateFieldWidthType
-
- All Implemented Interfaces:
StringEnum<DateFieldWidthType>
,java.io.Serializable
,java.lang.Comparable<DateFieldWidthType>
public enum DateFieldWidthType extends java.lang.Enum<DateFieldWidthType> implements StringEnum<DateFieldWidthType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DateFieldWidthType
fromString(java.lang.String s)
java.lang.String
value()
static DateFieldWidthType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DateFieldWidthType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SHORT
public static final DateFieldWidthType SHORT
-
NARROW
public static final DateFieldWidthType NARROW
-
WIDE
public static final DateFieldWidthType WIDE
-
-
Method Detail
-
values
public static DateFieldWidthType[] 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 (DateFieldWidthType c : DateFieldWidthType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateFieldWidthType 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<DateFieldWidthType>
-
fromString
public static DateFieldWidthType fromString(java.lang.String s)
-
-