public static enum FormatUtil.DurationFormatStyle extends java.lang.Enum<FormatUtil.DurationFormatStyle>
Enum Constant and Description |
---|
COMPACT
e.g.
|
LONG
e.g.
|
SHORT
e.g.
|
Modifier and Type | Method and Description |
---|---|
static FormatUtil.DurationFormatStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FormatUtil.DurationFormatStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FormatUtil.DurationFormatStyle LONG
public static final FormatUtil.DurationFormatStyle SHORT
public static final FormatUtil.DurationFormatStyle COMPACT
public static FormatUtil.DurationFormatStyle[] values()
for (FormatUtil.DurationFormatStyle c : FormatUtil.DurationFormatStyle.values()) System.out.println(c);
public static FormatUtil.DurationFormatStyle valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null