public class CustomMetric extends Object implements Metric
Metric
s on the fly.Constructor and Description |
---|
CustomMetric(double multiplier)
Creates a custom
Metric using the given multiplier. |
CustomMetric(double multiplier,
String abbreviation)
Creates a custom
Metric using the given multiplier and abbreviation. |
Modifier and Type | Method and Description |
---|---|
String |
getAbbreviation()
Returns the scientific abbreviation of the unit the
Metric is in. |
double |
getMultiplier()
Returns the multiplier to calculate metrics values from a base scale.
|
public CustomMetric(double multiplier)
Metric
using the given multiplier.multiplier
- public double getMultiplier()
Metric
getMultiplier
in interface Metric
public String getAbbreviation()
Metric
Metric
is in.getAbbreviation
in interface Metric
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.