org.sourcejammer.util
Class Counter

java.lang.Object
  |
  +--org.sourcejammer.util.Counter
All Implemented Interfaces:
java.io.Serializable

public class Counter
extends java.lang.Object
implements java.io.Serializable

Returns an incrimenting unique id, starting at 1.

See Also:
Serialized Form

Field Summary
private  long mlCounter
           
 
Constructor Summary
Counter()
           
 
Method Summary
 long getNextValue()
          Returns the next unique value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mlCounter

private long mlCounter
Constructor Detail

Counter

public Counter()
Method Detail

getNextValue

public long getNextValue()
Returns the next unique value.



Copyright 2003 Soucejammer project.