org.rapla.components.util.iterator
Class IteratorChain

java.lang.Object
  extended by org.rapla.components.util.iterator.IteratorChain
All Implemented Interfaces:
Iterator

public class IteratorChain
extends Object
implements Iterator

concatenates two Iterators


Field Summary
protected  Iterator firstIt
           
protected  Iterator secondIt
           
 
Constructor Summary
IteratorChain(Iterator firstIt, Iterator secondIt)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

firstIt

protected Iterator firstIt

secondIt

protected Iterator secondIt
Constructor Detail

IteratorChain

public IteratorChain(Iterator firstIt,
                     Iterator secondIt)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator


Copyright 2000-2006 Rapla Team. All Rights Reseserved.