Class MultiIterator<E>

java.lang.Object
org.apache.activemq.artemis.utils.collections.MultiIterator<E>
Type Parameters:
E - type of the class of the iterator.
All Implemented Interfaces:
Iterator<E>

public class MultiIterator<E> extends Object
Provides an Iterator that works over multiple underlying iterators.
  • Constructor Details

    • MultiIterator

      public MultiIterator(Iterator<E>[] iterators)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<E>
    • next

      public E next()
      Specified by:
      next in interface Iterator<E>
    • moveTo

      protected void moveTo(int index)
    • get

      protected Iterator<E> get(int index)