wt.fc.collections
Class IteratorUtility.AbstractReferenceIterator
java.lang.Object
wt.fc.collections.IteratorUtility.AbstractReferenceIterator
- All Implemented Interfaces:
- Iterator
- Direct Known Subclasses:
- IteratorUtility.AbstractReferenceListIterator, ReferenceMap.ReferenceIterator
- Enclosing class:
- IteratorUtility
- abstract static class IteratorUtility.AbstractReferenceIterator
- extends Object
- implements Iterator
Iterates over a List of references
Subclasses define how the references are stored,
what actions to take upon remove, and how to store
the modcount
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cursor
int cursor
last
int last
expectedModCount
int expectedModCount
IteratorUtility.AbstractReferenceIterator
IteratorUtility.AbstractReferenceIterator(int start)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
next
public Object next()
- Specified by:
next
in interface Iterator
nextReference
WTReference nextReference()
remove
public void remove()
- Specified by:
remove
in interface Iterator
getReferences
abstract List getReferences()
getModCount
abstract int getModCount()
removeReference
abstract void removeReference(WTReference r)