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