edu.stanford.nlp.util
Class AbstractIterator

java.lang.Object
  extended by edu.stanford.nlp.util.AbstractIterator
All Implemented Interfaces:
Iterator
Direct Known Subclasses:
XMLBeginEndIterator

public abstract class AbstractIterator
extends Object
implements Iterator

Iterator with remove defined to throw UnsupportedOperationException .


Constructor Summary
AbstractIterator()
           
 
Method Summary
abstract  boolean hasNext()
           
abstract  Object next()
           
 void remove()
          Throws an UnupportedOperationException .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractIterator

public AbstractIterator()
Method Detail

hasNext

public abstract boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public abstract Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Throws an UnupportedOperationException .

Specified by:
remove in interface Iterator


Stanford NLP Group