public enum MetricUnit extends Enum<MetricUnit>
| Enum Constant and Description |
|---|
BYTE |
KILO_BYTE |
MILLI_SECOND |
MINUTE |
NONE |
SECONDS |
| Modifier and Type | Method and Description |
|---|---|
static MetricUnit |
fromDisplayName(String displayName) |
String |
getDisplayName() |
static MetricUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetricUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetricUnit NONE
public static final MetricUnit MILLI_SECOND
public static final MetricUnit SECONDS
public static final MetricUnit MINUTE
public static final MetricUnit BYTE
public static final MetricUnit KILO_BYTE
public static MetricUnit[] values()
for (MetricUnit c : MetricUnit.values()) System.out.println(c);
public static MetricUnit 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 MetricUnit fromDisplayName(String displayName)
Copyright © 2015 Red Hat, Inc.. All rights reserved.