Class ClassIndexedSet.ClassIndexedSetIterator
- java.lang.Object
-
- net.shibboleth.utilities.java.support.collection.ClassIndexedSet.ClassIndexedSetIterator
-
- All Implemented Interfaces:
Iterator<T>
- Enclosing class:
- ClassIndexedSet<T>
protected class ClassIndexedSet.ClassIndexedSetIterator extends Object implements Iterator<T>
Iterator for set implementationClassIndexedSet.
-
-
Field Summary
Fields Modifier and Type Field Description private TcurrentThe element most recently returned by next(), and the target for any subsequent remove() operation.private Iterator<T>iteratorThe iterator for the owner's underlying storage.private booleannextCalledFlag which tracks whether next() has been called at least once.private booleanremoveStateValidFlag which tracks whether remove can currently be called.private ClassIndexedSet<T>setThe set instance over which this instance is an iterator.
-
Constructor Summary
Constructors Modifier Constructor Description protectedClassIndexedSetIterator(ClassIndexedSet<T> parentSet, Iterator<T> parentIterator)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Tnext()voidremove()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
set
private final ClassIndexedSet<T> set
The set instance over which this instance is an iterator.
-
nextCalled
private boolean nextCalled
Flag which tracks whether next() has been called at least once.
-
removeStateValid
private boolean removeStateValid
Flag which tracks whether remove can currently be called.
-
current
private T current
The element most recently returned by next(), and the target for any subsequent remove() operation.
-
-
Constructor Detail
-
ClassIndexedSetIterator
protected ClassIndexedSetIterator(ClassIndexedSet<T> parentSet, Iterator<T> parentIterator)
Constructor.- Parameters:
parentSet- theClassIndexedSetover which this instance is an iteratorparentIterator- the iterator for the parent's underlying storage
-
-