org.springframework.util

## 类 CompositeIterator<E>

- java.lang.Object
- - org.springframework.util.CompositeIterator<E>

- 所有已实现的接口:
    Iterator<E>

      public class CompositeIterator<E>
      extends Object
      implements Iterator<E>

  Composite iterator that combines multiple other iterators, as registered via `add(Iterator)`.

  This implementation maintains a linked set of iterators which are invoked in sequence until all iterators are exhausted.

  从以下版本开始:
    3.0
  作者:
    Erwin Vervaet, Juergen Hoeller

- - ### 构造器概要

    构造器
    构造器和说明
    `CompositeIterator()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `add(Iterator<E> iterator)` Add given iterator to this composite.
    `boolean` | `hasNext()`
    `E` | `next()`
    `void` | `remove()`

    - ### 从类继承的方法 java.lang.Object

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

    - ### 从接口继承的方法 java.util.Iterator

      `forEachRemaining`

- - ### 构造器详细资料

    - #### CompositeIterator

          public CompositeIterator()

  - ### 方法详细资料

    - #### add

          public void add(Iterator<E> iterator)

      Add given iterator to this composite.

    - #### hasNext

          public boolean hasNext()

      指定者:
        `hasNext` 在接口中 `Iterator<E>`

    - #### next

          public E next()

      指定者:
        `next` 在接口中 `Iterator<E>`

    - #### remove

          public void remove()

      指定者:
        `remove` 在接口中 `Iterator<E>`