org.terracotta.management.stats
Class AbstractStatistic<V extends Serializable,U extends Serializable>

java.lang.Object
  extended by 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

Constructor Summary
AbstractStatistic(V value, U unit)
           
 
Method Summary
 boolean equals(Object o)
           
 U getUnit()
           
 V getValue()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractStatistic

public AbstractStatistic(V value,
                         U unit)
Method Detail

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.