edu.stanford.nlp.util
Class ConcatenationIterator<T>

java.lang.Object
  extended by edu.stanford.nlp.util.ConcatenationIterator<T>
All Implemented Interfaces:
java.util.Iterator<T>

public class ConcatenationIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>

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(java.util.Iterator<T> first, java.util.Iterator<T> second)
           
 
Method Summary
 boolean hasNext()
           
static void main(java.lang.String[] args)
           
 T 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(java.util.Iterator<T> first,
                             java.util.Iterator<T> second)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<T>

next

public T next()
Specified by:
next in interface java.util.Iterator<T>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<T>

main

public static void main(java.lang.String[] args)


Stanford NLP Group