All Packages Class Hierarchy This Package Previous Next Index
Interface aid.util.misc.IdentifierGenerator
- public interface IdentifierGenerator
Defines the interface of a generator that procudes unique identifiers.
- Version:
- $Revision$, $Date$
- Author:
- M. Jaczynski
-
newIdentifier()
- Returns a new identifier.
-
reserveIdentifier(Object)
- Reserves the given identifier in this generator.
-
reset()
- Resets this generator.
newIdentifier
public abstract Object newIdentifier() throws GeneratorExhaustedException
- Returns a new identifier.
- Returns:
- the identifier
- Throws: GeneratorExhaustedException
- this generator is not able to produce a new identifier
reserveIdentifier
public abstract void reserveIdentifier(Object id)
- Reserves the given identifier in this generator.
The given id will not be produce in the future by this generator.
- Parameters:
- id - the identifier
reset
public abstract void reset()
- Resets this generator.
All Packages Class Hierarchy This Package Previous Next Index