net.israfil.foundation.core
Class SimpleCounter

java.lang.Object
  extended by net.israfil.foundation.core.SimpleCounter
All Implemented Interfaces:
Counter

public class SimpleCounter
extends java.lang.Object
implements Counter

A simple counter interface

Author:
Christian Edward Gruber

Constructor Summary
SimpleCounter()
           
 
Method Summary
 void decrement()
           
 int getCount()
           
 void increment()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCounter

public SimpleCounter()
Method Detail

getCount

public int getCount()
Specified by:
getCount in interface Counter

increment

public void increment()
Specified by:
increment in interface Counter

decrement

public void decrement()
Specified by:
decrement in interface Counter

reset

public void reset()
Specified by:
reset in interface Counter


Copyright © 2003-2006. All Rights Reserved.