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