edu.stanford.nlp.util
Class AbstractIterator
java.lang.Object
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 .
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 |
AbstractIterator
public AbstractIterator()
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