public static enum Duration.Unit extends Enum<Duration.Unit>
Modifier and Type | Method and Description |
---|---|
static Duration.Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Duration.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Duration.Unit Days
public static final Duration.Unit Weeks
public static final Duration.Unit Months
public static Duration.Unit[] values()
for (Duration.Unit c : Duration.Unit.values()) System.out.println(c);
public static Duration.Unit 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 VersionOne, Inc.. All rights reserved.