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() newIdentifier()
-   Returns a new identifier.
  
-   reserveIdentifier(Object) reserveIdentifier(Object)
-   Reserves the given identifier in this generator.
  
-   reset() reset()
-   Resets this generator.
   
 newIdentifier
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
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
reset
 public abstract void reset()
  -  Resets this generator.
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index