Package com.ibm.icu.text
Enum DisplayOptions.DisplayLength
- All Implemented Interfaces:
Serializable
,Comparable<DisplayOptions.DisplayLength>
,java.lang.constant.Constable
- Enclosing class:
DisplayOptions
Represents all the display lengths.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUses full names when generating a locale name, e.g.Use short names when generating a locale name, e.g.A possible setting for DisplayLength. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List
<DisplayOptions.DisplayLength> Unmodifiable List of all display lengths constants. -
Method Summary
Modifier and TypeMethodDescriptionstatic DisplayOptions.DisplayLength
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 Details
-
UNDEFINED
A possible setting for DisplayLength. The DisplayLength context to be used is unknown (this is the default value). -
LENGTH_FULL
Uses full names when generating a locale name, e.g. "United States" for US. -
LENGTH_SHORT
Use short names when generating a locale name, e.g. "U.S." for US.
-
-
Field Details
-
VALUES
Unmodifiable List of all display lengths constants. List version ofvalues()
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-