public class CustomMetric extends Object implements Metric
Metrics 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()
MetricgetMultiplier in interface Metricpublic String getAbbreviation()
MetricMetric is in.getAbbreviation in interface MetricCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.