Class Units
- java.lang.Object
-
- org.hpccsystems.commons.benchmarking.Units
-
public class Units extends Object
Represents the units for an IMetric.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Units.Scale
static class
Units.Type
-
Field Summary
Fields Modifier and Type Field Description Units.Scale
scale
Units.Type
type
-
Constructor Summary
Constructors Constructor Description Units(Units.Type type)
Units(Units.Type type, Units.Scale scale)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static double
calculateScaleConversion(Units.Scale from, Units.Scale to)
String
toString()
-
-
-
Field Detail
-
type
public Units.Type type
-
scale
public Units.Scale scale
-
-
Constructor Detail
-
Units
public Units(Units.Type type)
-
Units
public Units(Units.Type type, Units.Scale scale)
-
-
Method Detail
-
calculateScaleConversion
public static double calculateScaleConversion(Units.Scale from, Units.Scale to)
-
-