com.continuent.tungsten.common.utils
Class LongStatistic

java.lang.Object
  extended by com.continuent.tungsten.common.utils.LongStatistic
All Implemented Interfaces:
Statistic<java.lang.Long>

public class LongStatistic
extends java.lang.Object
implements Statistic<java.lang.Long>

This class defines a DoubleStatistic

Version:
1.0
Author:
Edward Archibald

Constructor Summary
LongStatistic(java.lang.String label)
           
 
Method Summary
 java.lang.Long add(java.lang.Number value)
           
 void clear()
           
 java.lang.Long decrement()
           
 java.lang.Long getAverage()
           
 java.lang.String getLabel()
           
 java.lang.Long getValue()
           
 java.lang.Long increment()
           
 void setValue(java.lang.Number value)
           
 java.lang.Long subtract(java.lang.Number value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LongStatistic

public LongStatistic(java.lang.String label)
Method Detail

decrement

public java.lang.Long decrement()
Specified by:
decrement in interface Statistic<java.lang.Long>

getAverage

public java.lang.Long getAverage()
Specified by:
getAverage in interface Statistic<java.lang.Long>

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface Statistic<java.lang.Long>

getValue

public java.lang.Long getValue()
Specified by:
getValue in interface Statistic<java.lang.Long>

increment

public java.lang.Long increment()
Specified by:
increment in interface Statistic<java.lang.Long>

setValue

public void setValue(java.lang.Number value)
Specified by:
setValue in interface Statistic<java.lang.Long>

add

public java.lang.Long add(java.lang.Number value)
Specified by:
add in interface Statistic<java.lang.Long>

subtract

public java.lang.Long subtract(java.lang.Number value)
Specified by:
subtract in interface Statistic<java.lang.Long>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

clear

public void clear()
Specified by:
clear in interface Statistic<java.lang.Long>