org.terracotta.management.stats
Class AbstractStatistic<V,U>
java.lang.Object
org.terracotta.management.stats.AbstractStatistic<V,U>
- All Implemented Interfaces:
- Serializable, Statistic<V,U>
- Direct Known Subclasses:
- AbstractStatisticHistory, Average, Counter, Duration, Rate, Ratio, Size
public abstract class AbstractStatistic<V,U>
- extends Object
- implements Statistic<V,U>
- Author:
- Ludovic Orban
- See Also:
- Serialized Form
AbstractStatistic
public AbstractStatistic(String name,
V value,
U unit)
getUnit
public final U getUnit()
- Specified by:
getUnit in interface Statistic<V,U>
getName
public final String getName()
- Specified by:
getName in interface Statistic<V,U>
getValue
public final V getValue()
- Specified by:
getValue in interface Statistic<V,U>
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.