com.sun.slamd.scripting.ldap
Class SequentialValueCounter

java.lang.Object
  extended bycom.sun.slamd.scripting.ldap.SequentialValueCounter

public class SequentialValueCounter
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.


Constructor Summary
SequentialValueCounter()
          Creates a new counter with a starting point of zero.
SequentialValueCounter(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

SequentialValueCounter

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


SequentialValueCounter

public SequentialValueCounter(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.