T
- the data type for the metricpublic abstract class Metric<T extends Number> extends Object implements Serializable
MetricDefinition
with a value for this metric.Modifier and Type | Field and Description |
---|---|
protected MetricDefinition |
metricDefinition
The definition for this metric.
|
Modifier | Constructor and Description |
---|---|
protected |
Metric(MetricDefinition metricDefinition) |
Modifier and Type | Method and Description |
---|---|
String |
getId() |
MetricDefinition |
getMetricDefinition() |
abstract T |
rawValue()
Return the raw value of this metric, e.g. used for calculations.
|
abstract String |
renderValue()
Return the value of this metric that should be displayed in the UI.
|
String |
toString() |
protected final MetricDefinition metricDefinition
protected Metric(MetricDefinition metricDefinition)
public abstract String renderValue()
public abstract T rawValue()
public String getId()
public MetricDefinition getMetricDefinition()
Copyright © 2016–2020. All rights reserved.