ifs.util
Class Counter

java.lang.Object
  extended by ifs.util.Counter

public class Counter
extends Object

Counter.

Version:
1.0
Author:
Tomáš Müller

Constructor Summary
Counter()
           
 
Method Summary
 void dec(long value)
          Decrement counter
 long get()
          Returns current value
 void inc(long value)
          Increment counter
 void set(long value)
          Set counter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Counter

public Counter()
Method Detail

set

public void set(long value)
Set counter


get

public long get()
Returns current value


inc

public void inc(long value)
Increment counter


dec

public void dec(long value)
Decrement counter



Copyright © 2005 Tomáš Müller