Package com.ibm.icu.text
Enum DateTimePatternGenerator.DisplayWidth
- java.lang.Object
-
- java.lang.Enum<DateTimePatternGenerator.DisplayWidth>
-
- com.ibm.icu.text.DateTimePatternGenerator.DisplayWidth
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DateTimePatternGenerator.DisplayWidth>
- Enclosing class:
- DateTimePatternGenerator
public static enum DateTimePatternGenerator.DisplayWidth extends java.lang.Enum<DateTimePatternGenerator.DisplayWidth>
Field display name width constants for getFieldDisplayName
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABBREVIATED
An abbreviated field name (may be the same as the wide version, if short enough)NARROW
The shortest possible field name (may be the same as the abbreviated version)WIDE
The full field name
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DateTimePatternGenerator.DisplayWidth
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DateTimePatternGenerator.DisplayWidth[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WIDE
public static final DateTimePatternGenerator.DisplayWidth WIDE
The full field name
-
ABBREVIATED
public static final DateTimePatternGenerator.DisplayWidth ABBREVIATED
An abbreviated field name (may be the same as the wide version, if short enough)
-
NARROW
public static final DateTimePatternGenerator.DisplayWidth NARROW
The shortest possible field name (may be the same as the abbreviated version)
-
-
Method Detail
-
values
public static DateTimePatternGenerator.DisplayWidth[] 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 (DateTimePatternGenerator.DisplayWidth c : DateTimePatternGenerator.DisplayWidth.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateTimePatternGenerator.DisplayWidth 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
-
-