org.modeshape.common.collection

## Class MultiIterator<E>

- java.lang.Object
- - org.modeshape.common.collection.MultiIterator<E>

- Type Parameters:
    `E` - the value type
  All Implemented Interfaces:
    Iterator<E>

      @NotThreadSafe
      public class MultiIterator<E>
      extends Object
      implements Iterator<E>

  An iterator implementation that wraps multiple other iterators.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MultiIterator(Iterable<Iterator<E>> iterators)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `hasNext()`
    `E` | `next()`
    `protected boolean` | `nextIterator()`
    `void` | `remove()`

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### MultiIterator

          public MultiIterator(Iterable<Iterator<E>> iterators)

  - ### Method Detail

    - #### hasNext

          public boolean hasNext()

      Specified by:
        `hasNext` in interface `Iterator<E>`

    - #### next

          public E next()

      Specified by:
        `next` in interface `Iterator<E>`

    - #### nextIterator

          protected boolean nextIterator()

    - #### remove

          public void remove()

      Specified by:
        `remove` in interface `Iterator<E>`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.