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.


Method Summary
 void add(long value)
          Deprecated. deprecated in favor of count(long).
 void count(long value)
           
 String getName()
           
 String getUnit()
           
 void reset()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public String getName()

getUnit

public String getUnit()

add

@Deprecated
public void add(long value)
Deprecated. deprecated in favor of count(long).


count

public void count(long value)

reset

public void reset()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.