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

java.lang.Object
  extended by org.terracotta.management.stats.AbstractStatistic<V,U>
All Implemented Interfaces:
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

Constructor Summary
AbstractStatistic(String name, V value, U unit)
           
 
Method Summary
 boolean equals(Object o)
           
 String getName()
           
 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(String name,
                         V value,
                         U unit)
Method Detail

getUnit

public U getUnit()
Specified by:
getUnit in interface Statistic<V,U>

getName

public String getName()
Specified by:
getName in interface Statistic<V,U>

getValue

public 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 © 2015. All Rights Reserved.