public static enum Duration.TimeUnit extends Enum<Duration.TimeUnit>
Enum Constant and Description |
---|
MINUTE |
SECOND |
TENTH_SECOND |
Modifier and Type | Method and Description |
---|---|
int |
value() |
static Duration.TimeUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Duration.TimeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Duration.TimeUnit MINUTE
public static final Duration.TimeUnit SECOND
public static final Duration.TimeUnit TENTH_SECOND
public static Duration.TimeUnit[] values()
for (Duration.TimeUnit c : Duration.TimeUnit.values()) System.out.println(c);
public static Duration.TimeUnit 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 nullpublic int value()