ch.bind.philib.util
Class Counter

java.lang.Object
  extended by ch.bind.philib.util.Counter

public final class Counter
extends Object

A simple counter where values can be added or the whole counter be reset.


Constructor Summary
Counter(String name)
           
 
Method Summary
 void count(Counter counter)
           
 void count(long value)
           
 long getMax()
           
 long getMin()
           
 String getName()
           
 long getNumCounts()
           
 long getTotal()
           
 void reset()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Counter

public Counter(String name)
Method Detail

getName

public String getName()

getNumCounts

public long getNumCounts()

getTotal

public long getTotal()

getMin

public long getMin()

getMax

public long getMax()

count

public void count(long value)

reset

public void reset()

toString

public String toString()
Overrides:
toString in class Object

count

public void count(Counter counter)


Copyright © 2013. All Rights Reserved.