Class Counter

java.lang.Object
  |
  +--Counter

public class Counter
extends java.lang.Object

A counter representing a integer value.


Constructor Summary
Counter()
           
 
Method Summary
 int getValue()
          Returns the value of the counter.
 void inc()
          Increases the value of the counter by one.
 
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

inc

public void inc()
Increases the value of the counter by one.

getValue

public int getValue()
Returns the value of the counter.
Returns:
the value of the counter