edu.stanford.nlp.util
Class ConcatenationIterator

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


Constructor Summary
ConcatenationIterator(Iterator first, Iterator second)
           
 
Method Summary
 boolean hasNext()
           
static void main(String[] args)
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConcatenationIterator

public ConcatenationIterator(Iterator first,
                             Iterator second)
Method Detail

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