org.apache.myfaces.buildtools.maven2.plugin.builder.trinidad.util
Class CompoundIterator

java.lang.Object
  extended by org.apache.myfaces.buildtools.maven2.plugin.builder.trinidad.util.CompoundIterator
All Implemented Interfaces:
Iterator

public class CompoundIterator
extends Object
implements Iterator

CompoundIterator consumes the initial iterator before observing the next iterator.


Constructor Summary
CompoundIterator(Iterator[] iterators)
           
CompoundIterator(Iterator primary, Iterator secondary)
           
 
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
 

Constructor Detail

CompoundIterator

public CompoundIterator(Iterator primary,
                        Iterator secondary)

CompoundIterator

public CompoundIterator(Iterator[] iterators)
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


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.