Class CombinedIterator<T>

java.lang.Object
ch.njol.util.coll.iterator.CombinedIterator<T>
All Implemented Interfaces:
Iterator<T>

@Deprecated(since="2.10.0", forRemoval=true) public class CombinedIterator<T> extends Object implements Iterator<T>
Deprecated, for removal: This API element is subject to removal in a future version.
use Iterators.concat(Iterator[]) instead.
An iterator that iterates over all elements of several iterables.

Elements are removable from this iterator if the source iterables support element removal, unless removal is blocked on creation.

  • Constructor Summary

    Constructors
    Constructor
    Description
    CombinedIterator(Iterator<? extends Iterable<T>> iterators)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    CombinedIterator(Iterator<? extends Iterable<T>> iterators, boolean removable)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.Iterator

    forEachRemaining
  • Constructor Details

    • CombinedIterator

      public CombinedIterator(Iterator<? extends Iterable<T>> iterators)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CombinedIterator

      public CombinedIterator(Iterator<? extends Iterable<T>> iterators, boolean removable)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • hasNext

      public boolean hasNext()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      hasNext in interface Iterator<T>
    • next

      @Nullable public T next()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      next in interface Iterator<T>
    • remove

      public void remove()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      remove in interface Iterator<T>