org.xwiki.extension.repository.result
Class AggregatedIterator<T>

java.lang.Object
  extended by org.xwiki.extension.repository.result.AggregatedIterator<T>
Type Parameters:
T - the type of the iterated values
All Implemented Interfaces:
Iterator<T>

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

Makes several consecutive Iterators look like one.

Since:
4.0M1
Version:
$Id: 16b611e7e0aa27b3e3107ea4282ccb24774bfdc4 $

Constructor Summary
AggregatedIterator(Iterator<Iterator<T>> iterators)
           
 
Method Summary
 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

AggregatedIterator

public AggregatedIterator(Iterator<Iterator<T>> iterators)
Parameters:
iterators - the iterators to aggregated
Method Detail

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 © 2004-2013 XWiki. All Rights Reserved.