File
Doc
Category
Size
Date
Package
UniqueIDGenerator.java
API Doc
Glassfish v2 API
2582
Fri May 04 22:23:42 BST 2007
com.sun.enterprise.management.support
UniqueIDGenerator
java.lang.Object
public final class UniqueIDGenerator extends Object
Produces a series of unique identifiers which are unique for this instance.
Fields Summary
private int
mID
private final String
mPrefix
Constructors Summary
public UniqueIDGenerator
(
String
prefix)
mPrefix = prefix == null ? "" : prefix; mID = 0;
Methods Summary
public synchronized
java.lang.Object
createID
()
++mID; return( mPrefix + mID );
Java Code Source