SandMark version 2.0


sandmark.util
Class IdentifierIterator

java.lang.Object
  |
  +--sandmark.util.IdentifierIterator
All Implemented Interfaces:
java.util.Iterator

public class IdentifierIterator
extends java.lang.Object
implements java.util.Iterator

IdentifierIterator provides a straightforward interface for generating new java identifiers for methods, classes, etc. Identifiers are returned in lexicographic order (basically).

Author:
Kelly Heffner

Constructor Summary
IdentifierIterator()
          Constructs a new identifier iterator.
 
Method Summary
 boolean hasNext()
          Checks to see if there are more identifiers available.
 java.lang.Object next()
          Returns the next unique identifier.
 void remove()
          Not implemented.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentifierIterator

public IdentifierIterator()
Constructs a new identifier iterator. Reset an IdentifierIterator by reconstructing it.

Method Detail

hasNext

public boolean hasNext()
Checks to see if there are more identifiers available. This will always return true.

Specified by:
hasNext in interface java.util.Iterator
Returns:
true

remove

public void remove()
Not implemented.

Specified by:
remove in interface java.util.Iterator

next

public java.lang.Object next()
Returns the next unique identifier.

Specified by:
next in interface java.util.Iterator
Returns:
an identifier that is unique from any other identifier returned from this instance of the iterator so far

SandMark version 2.0

Mon Jun 17 12:30:47 MST 2002