Class AggregatedIterator<T>

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

@Deprecated public class AggregatedIterator<T> extends Object implements Iterator<T>
Deprecated.
since 8.4.6, 9.5, use IteratorChain instead
Makes several consecutive Iterators look like one.
Since:
4.0M1
Version:
$Id: 8711e792e651bd9946b1734b91baab84ce95919d $
  • Constructor Details

    • AggregatedIterator

      public AggregatedIterator(Iterator<Iterator<T>> iterators)
      Deprecated.
      Parameters:
      iterators - the iterators to aggregated
  • Method Details

    • hasNext

      public boolean hasNext()
      Deprecated.
      Specified by:
      hasNext in interface Iterator<T>
    • next

      public T next()
      Deprecated.
      Specified by:
      next in interface Iterator<T>
    • remove

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