wt.fc.collections
Class IteratorUtility.AbstractReferenceIterator

java.lang.Object
  extended bywt.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


Field Summary
(package private)  int cursor
           
(package private)  int expectedModCount
           
(package private)  int last
           
 
Constructor Summary
(package private) IteratorUtility.AbstractReferenceIterator(int start)
           
 
Method Summary
(package private) abstract  int getModCount()
           
(package private) abstract  List getReferences()
           
 boolean hasNext()
           
 Object next()
           
(package private)  WTReference nextReference()
           
 void remove()
           
(package private) abstract  void removeReference(WTReference r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cursor

int cursor

last

int last

expectedModCount

int expectedModCount
Constructor Detail

IteratorUtility.AbstractReferenceIterator

IteratorUtility.AbstractReferenceIterator(int start)
Method Detail

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)