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

Method Index

 o newIdentifier()
Returns a new identifier.
 o reserveIdentifier(Object)
Reserves the given identifier in this generator.
 o reset()
Resets this generator.

Methods

 o 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
 o 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
 o reset
 public abstract void reset()
Resets this generator.


All Packages  Class Hierarchy  This Package  Previous  Next  Index