public enum DurationResolution extends Enum<DurationResolution>
| Enum Constant and Description |
|---|
Day |
Hour |
Millisecond |
Minute |
Second |
| Modifier and Type | Method and Description |
|---|---|
static DurationResolution |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DurationResolution[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DurationResolution Millisecond
public static final DurationResolution Second
public static final DurationResolution Minute
public static final DurationResolution Hour
public static final DurationResolution Day
public static DurationResolution[] values()
for (DurationResolution c : DurationResolution.values()) System.out.println(c);
public static DurationResolution 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 © 2014 BillForward. All rights reserved.