Package com.ibm.icu.text
Enum DisplayOptions.DisplayLength
- java.lang.Object
-
- java.lang.Enum<DisplayOptions.DisplayLength>
-
- com.ibm.icu.text.DisplayOptions.DisplayLength
-
- All Implemented Interfaces:
Serializable
,Comparable<DisplayOptions.DisplayLength>
- Enclosing class:
- DisplayOptions
public static enum DisplayOptions.DisplayLength extends Enum<DisplayOptions.DisplayLength>
Represents all the display lengths.- Status:
- Stable ICU 72.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LENGTH_FULL
Uses full names when generating a locale name, e.g.LENGTH_SHORT
Use short names when generating a locale name, e.g.UNDEFINED
A possible setting for DisplayLength.
-
Field Summary
Fields Modifier and Type Field Description static List<DisplayOptions.DisplayLength>
VALUES
Unmodifiable List of all display lengths constants.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DisplayOptions.DisplayLength
valueOf(String name)
Returns the enum constant of this type with the specified name.static DisplayOptions.DisplayLength[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED
public static final DisplayOptions.DisplayLength UNDEFINED
A possible setting for DisplayLength. The DisplayLength context to be used is unknown (this is the default value).- Status:
- Stable ICU 72.
-
LENGTH_FULL
public static final DisplayOptions.DisplayLength LENGTH_FULL
Uses full names when generating a locale name, e.g. "United States" for US.- Status:
- Stable ICU 72.
-
LENGTH_SHORT
public static final DisplayOptions.DisplayLength LENGTH_SHORT
Use short names when generating a locale name, e.g. "U.S." for US.- Status:
- Stable ICU 72.
-
-
Field Detail
-
VALUES
public static final List<DisplayOptions.DisplayLength> VALUES
Unmodifiable List of all display lengths constants. List version ofvalues()
.- Status:
- Stable ICU 72.
-
-
Method Detail
-
values
public static DisplayOptions.DisplayLength[] 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 (DisplayOptions.DisplayLength c : DisplayOptions.DisplayLength.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DisplayOptions.DisplayLength valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-