public class PercentageMetric extends Metric<Float>
Metric
for percentage metrics.metricDefinition
Constructor and Description |
---|
PercentageMetric(MetricDefinition metricDefinition,
float value)
Constructor for a percentage metric.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
Float |
rawValue()
Return the raw value of this metric, e.g. used for calculations.
|
String |
renderValue()
Return the value of this metric that should be displayed in the UI.
|
getId, getMetricDefinition, toString
public PercentageMetric(MetricDefinition metricDefinition, float value)
metricDefinition
- the definition of this metricvalue
- the percentage value as floatpublic String renderValue()
Metric
renderValue
in class Metric<Float>
public Float rawValue()
Metric
Copyright © 2016–2020. All rights reserved.