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