public class MetricAttribute extends BaseAttribute
Constructor and Description |
---|
MetricAttribute(java.lang.String id,
double value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
double |
getValue() |
int |
hashCode() |
java.lang.String |
toString() |
getId
public MetricAttribute(java.lang.String id, double value)
id
- of the Metricvalue
- of the Metric.java.lang.IllegalArgumentException
- when id is null or empty.public double getValue()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- an object to compare this instance against.