public static enum DateTimePatternGenerator.DisplayWidth extends Enum<DateTimePatternGenerator.DisplayWidth>
Enum Constant and 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
|
Modifier and Type | Method and Description |
---|---|
static DateTimePatternGenerator.DisplayWidth |
valueOf(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.
|
public static final DateTimePatternGenerator.DisplayWidth WIDE
public static final DateTimePatternGenerator.DisplayWidth ABBREVIATED
public static final DateTimePatternGenerator.DisplayWidth NARROW
public static DateTimePatternGenerator.DisplayWidth[] values()
for (DateTimePatternGenerator.DisplayWidth c : DateTimePatternGenerator.DisplayWidth.values()) System.out.println(c);
public static DateTimePatternGenerator.DisplayWidth valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016 Unicode, Inc. and others.