protected class ClassIndexedSet.ClassIndexedSetIterator
extends java.lang.Object
implements java.util.Iterator<T>
ClassIndexedSet.| Modifier and Type | Field and Description |
|---|---|
private T |
current
The element most recently returned by next(), and the target for any subsequent remove() operation.
|
private java.util.Iterator<T> |
iterator
The iterator for the owner's underlying storage.
|
private boolean |
nextCalled
Flag which tracks whether next() has been called at least once.
|
private boolean |
removeStateValid
Flag which tracks whether remove can currently be called.
|
private ClassIndexedSet<T> |
set
The set instance over which this instance is an iterator.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ClassIndexedSetIterator(ClassIndexedSet<T> parentSet,
java.util.Iterator<T> parentIterator)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
T |
next() |
void |
remove() |
private final ClassIndexedSet<T> set
private final java.util.Iterator<T> iterator
private boolean nextCalled
private boolean removeStateValid
private T current
protected ClassIndexedSetIterator(ClassIndexedSet<T> parentSet, java.util.Iterator<T> parentIterator)
parentSet - the ClassIndexedSet over which this instance is an iteratorparentIterator - the iterator for the parent's underlying storage