org.terracotta.management.stats
Class AbstractStatistic<V extends Serializable,U extends Serializable>
java.lang.Object
org.terracotta.management.stats.AbstractStatistic<V,U>
- All Implemented Interfaces:
- Serializable, Statistic<V,U>
- Direct Known Subclasses:
- Average, Counter, Duration, Rate, Ratio, Size
public abstract class AbstractStatistic<V extends Serializable,U extends Serializable>
- extends Object
- implements Statistic<V,U>, Serializable
- Author:
- Ludovic Orban, Mathieu Carbou
- See Also:
- Serialized Form
AbstractStatistic
public AbstractStatistic(V value,
U unit)
getUnit
public final U getUnit()
- Specified by:
getUnit in interface Statistic<V extends Serializable,U extends Serializable>
getValue
public final V getValue()
- Specified by:
getValue in interface Statistic<V extends Serializable,U extends Serializable>
toString
public String toString()
- Overrides:
toString in class Object
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2016. All Rights Reserved.