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() |
getIdpublic 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.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - an object to compare this instance against.