edu.stanford.nlp.util
Class ConcatenationIterator
java.lang.Object
edu.stanford.nlp.util.ConcatenationIterator
- All Implemented Interfaces:
- Iterator
- Direct Known Subclasses:
- UnionIterator
- public class ConcatenationIterator
- extends Object
- implements Iterator
Iterator that represents the concatenation of two other iterators.
User: Dan Klein (klein@cs.stanford.edu)
Date: Oct 22, 2003
Time: 7:27:39 PM
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConcatenationIterator
public ConcatenationIterator(Iterator first,
Iterator second)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
next
public Object next()
- Specified by:
next
in interface Iterator
remove
public void remove()
- Specified by:
remove
in interface Iterator
main
public static void main(String[] args)
Stanford NLP Group