public enum DurationUnit extends Enum<DurationUnit>
Enum Constant and Description |
---|
MICROSECOND |
MILLISSECOND |
NANOSECOND |
SECOND |
Modifier and Type | Method and Description |
---|---|
static DurationUnit |
valueOf(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(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 © 2017 JBoss by Red Hat. All rights reserved.