public class Metric extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Metric.MetricType |
Modifier and Type | Field and Description |
---|---|
protected String |
measurementUnit |
protected Metric.MetricType |
metricType |
protected String |
name |
protected Object |
value |
Constructor and Description |
---|
Metric() |
Metric(String name,
Object value,
String measurementUnit,
Metric.MetricType metricType) |
Modifier and Type | Method and Description |
---|---|
String |
getMeasurementUnit() |
Metric.MetricType |
getMetricType() |
String |
getName() |
Object |
getValue() |
void |
setMeasurementUnit(String measurementUnit) |
void |
setMetricType(Metric.MetricType metricType) |
void |
setName(String name) |
void |
setValue(Object value) |
protected String name
protected String measurementUnit
protected Metric.MetricType metricType
protected Object value
public Metric()
public Metric(String name, Object value, String measurementUnit, Metric.MetricType metricType)
public String getName()
public String getMeasurementUnit()
public Metric.MetricType getMetricType()
public void setMeasurementUnit(String measurementUnit)
public void setMetricType(Metric.MetricType metricType)
public Object getValue()
public void setName(String name)
public void setValue(Object value)
Copyright © 2016. All Rights Reserved.