at.molindo.utils.collections
Class IteratorChain<T>

java.lang.Object
  extended by at.molindo.utils.collections.IteratorChain<T>
All Implemented Interfaces:
Iterator<T>

public class IteratorChain<T>
extends Object
implements Iterator<T>


Constructor Summary
IteratorChain(Iterable<Iterator<T>> iterators)
           
IteratorChain(Iterator<Iterator<T>> iterator)
           
 
Method Summary
static
<T> IteratorChain<T>
chainIterables(Iterable<? extends Iterable<T>> iterables)
           
static
<T> IteratorChain<T>
chainIterables(Iterator<? extends Iterable<T>> iterables)
           
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorChain

public IteratorChain(Iterable<Iterator<T>> iterators)

IteratorChain

public IteratorChain(Iterator<Iterator<T>> iterator)
Method Detail

chainIterables

public static <T> IteratorChain<T> chainIterables(Iterable<? extends Iterable<T>> iterables)

chainIterables

public static <T> IteratorChain<T> chainIterables(Iterator<? extends Iterable<T>> iterables)

hasNext

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

next

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

remove

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


Copyright © 2013 Molindo GmbH. All Rights Reserved.