public final class Gauge extends java.lang.Object implements Metric
public Gauge(java.lang.String name)
name
- the name of the Gauge.public Gauge(java.lang.String name, long value)
name
- the name of the Gaugevalue
- initial value.public long getValue()
public java.lang.String getName()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object