acme
Class BoundedCounter

java.lang.Object
  extended by acme.BoundedCounter

public class BoundedCounter
extends java.lang.Object


Constructor Summary
BoundedCounter(int max)
           
 
Method Summary
 int getValue()
           
 void inc()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundedCounter

public BoundedCounter(int max)
Method Detail

getValue

public int getValue()

inc

public void inc()
         throws CountOverflowException
Throws:
CountOverflowException