Enum Units.Type
- java.lang.Object
-
- java.lang.Enum<Units.Type>
-
- org.hpccsystems.commons.benchmarking.Units.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<Units.Type>
- Enclosing class:
- Units
public static enum Units.Type extends Enum<Units.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BYTES
COUNT
PERCENTAGE
SECONDS
-
Field Summary
Fields Modifier and Type Field Description String
typePostfix
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Units.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static Units.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SECONDS
public static final Units.Type SECONDS
-
BYTES
public static final Units.Type BYTES
-
COUNT
public static final Units.Type COUNT
-
PERCENTAGE
public static final Units.Type PERCENTAGE
-
-
Field Detail
-
typePostfix
public String typePostfix
-
-
Method Detail
-
values
public static Units.Type[] 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.Type c : Units.Type.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.Type 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
-
-