com.slamd.tools.makeldif
Class Counter

java.lang.Object
  extended by com.slamd.tools.makeldif.Counter

public class Counter
extends java.lang.Object

This class defines a numeric counter that can be used to retrieve sequential values through subsequent calls to the getNext method.

Author:
Neil A. Wilson

Constructor Summary
Counter()
          Creates a new counter with a starting point of zero.
Counter(int startingPoint)
          Creates a new counter with the specified starting point.
 
Method Summary
 int getNext()
          Retrieves the next value to use for this counter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Counter

public Counter()
Creates a new counter with a starting point of zero.


Counter

public Counter(int startingPoint)
Creates a new counter with the specified starting point.

Parameters:
startingPoint - The first value that will be retrieved by this counter. Additional values retrieved will increase sequentially.
Method Detail

getNext

public int getNext()
Retrieves the next value to use for this counter.

Returns:
The next value to use for this counter.