public static enum Duration.Units extends Enum<Duration.Units>
| Enum Constant and Description |
|---|
DAYS |
HOURS |
MILLISECONDS |
MINUTES |
SECONDS |
| Modifier and Type | Method and Description |
|---|---|
static Duration.Units |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Duration.Units[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Duration.Units MILLISECONDS
public static final Duration.Units SECONDS
public static final Duration.Units MINUTES
public static final Duration.Units HOURS
public static final Duration.Units DAYS
public static Duration.Units[] values()
for (Duration.Units c : Duration.Units.values()) System.out.println(c);
public static Duration.Units 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 © 2015. All rights reserved.