public enum TimeUnits extends Enum<TimeUnits>
| Enum Constant and Description |
|---|
milliseconds |
minutes |
seconds |
| Modifier and Type | Method and Description |
|---|---|
TimeUnit |
toJavaTimeUnit() |
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 milliseconds
public static final TimeUnits seconds
public static final TimeUnits minutes
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 TimeUnit toJavaTimeUnit()
Copyright © 2015–2017 Red Hat, Inc.. All rights reserved.