edu.stanford.nlp.util
Class AbstractIterator<E>
java.lang.Object
edu.stanford.nlp.util.AbstractIterator<E>
- All Implemented Interfaces:
- Iterator<E>
- Direct Known Subclasses:
- LineIterator, XMLBeginEndIterator
public abstract class AbstractIterator<E>
- extends Object
- implements Iterator<E>
Iterator with remove() defined to throw an
UnsupportedOperationException.
|
Method Summary |
abstract boolean |
hasNext()
|
abstract E |
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<E>
next
public abstract E next()
- Specified by:
next in interface Iterator<E>
remove
public void remove()
- Throws an
UnupportedOperationException.
- Specified by:
remove in interface Iterator<E>
Stanford NLP Group