public enum TimeUnits extends Enum<TimeUnits>
| Modifier and Type | Method and Description |
|---|---|
long |
getMillis() |
static TimeUnits |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeUnits Seconds
public static final TimeUnits Minutes
public static final TimeUnits Hours
public static final TimeUnits Days
public static TimeUnits[] values()
for (TimeUnits c : TimeUnits.values()) System.out.println(c);
public static TimeUnits 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 nullpublic long getMillis()
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.