Enum Units.Scale
- java.lang.Object
-
- java.lang.Enum<Units.Scale>
-
- org.hpccsystems.commons.benchmarking.Units.Scale
-
- All Implemented Interfaces:
Serializable
,Comparable<Units.Scale>
- Enclosing class:
- Units
public static enum Units.Scale extends Enum<Units.Scale>
-
-
Field Summary
Fields Modifier and Type Field Description int
scalePower
String
scalePrefix
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Units.Scale
valueOf(String name)
Returns the enum constant of this type with the specified name.static Units.Scale[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NANO
public static final Units.Scale NANO
-
MICRO
public static final Units.Scale MICRO
-
MILLI
public static final Units.Scale MILLI
-
UNIT
public static final Units.Scale UNIT
-
KILO
public static final Units.Scale KILO
-
MEGA
public static final Units.Scale MEGA
-
GIGA
public static final Units.Scale GIGA
-
-
Field Detail
-
scalePrefix
public String scalePrefix
-
scalePower
public int scalePower
-
-
Method Detail
-
values
public static Units.Scale[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Units.Scale c : Units.Scale.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Units.Scale valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-