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:
java.io.Serializable
,java.lang.Comparable<DisplayOptions.DisplayLength>
- Enclosing class:
- DisplayOptions
public static enum DisplayOptions.DisplayLength extends java.lang.Enum<DisplayOptions.DisplayLength>
Represents all the display lengths.
-
-
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 java.util.List<DisplayOptions.DisplayLength>
VALUES
Unmodifiable List of all display lengths constants.
-
Constructor Summary
Constructors Modifier Constructor Description private
DisplayLength()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DisplayOptions.DisplayLength
valueOf(java.lang.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).
-
LENGTH_FULL
public static final DisplayOptions.DisplayLength LENGTH_FULL
Uses full names when generating a locale name, e.g. "United States" for US.
-
LENGTH_SHORT
public static final DisplayOptions.DisplayLength LENGTH_SHORT
Use short names when generating a locale name, e.g. "U.S." for US.
-
-
Field Detail
-
VALUES
public static final java.util.List<DisplayOptions.DisplayLength> VALUES
Unmodifiable List of all display lengths constants. List version ofvalues()
.
-
-
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(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
-
-