public final class MilliMetric extends Metric
| Constructor and Description |
|---|
MilliMetric(double value)
Construct a new MilliMetric from the given value.
|
MilliMetric(float value)
Construct a new MilliMetric from the given value.
|
MilliMetric(int value)
Construct a new MilliMetric from the given value.
|
MilliMetric(long value)
Construct a new MilliMetric from the given value.
|
MilliMetric(MilliMetric metric)
Create a MilliMetric with the same value as the given MilliMetric.
|
MilliMetric(String value)
Construct a new MilliMetric from a decimal representation.
|
| Modifier and Type | Method and Description |
|---|---|
MetricUnit |
getUnit()
Get the unit.
|
public MilliMetric(double value)
value - The value for the new MilliMetric.public MilliMetric(float value)
value - The value for the new MilliMetric.public MilliMetric(int value)
value - The value for the new MilliMetric.public MilliMetric(long value)
value - The value for the new MilliMetric.public MilliMetric(MilliMetric metric)
metric - The MilliMetric to copy values from.public MilliMetric(String value)
value - A String containing a decimal value.NumberFormatException - if the value is not a decimal.public MetricUnit getUnit()
Metric