Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Web Flow
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.binding.collection
Class CompositeIterator

    java.lang.Object
      org.springframework.binding.collection.CompositeIterator

All Implemented Interfaces:
  java.util.Iterator

    public class CompositeIterator

extends java.lang.Object
implements java.util.Iterator

Iterator that combines multiple other iterators. This is a simple implementation that just maintains a list of iterators which are invoked in sequence untill all iterators are exhausted.

Author:
  Erwin Vervaet

Constructor Summary
`CompositeIterator()` Create a new composite iterator.

Method Summary
`void` | `add(java.util.Iterator iterator)` Add given iterator to this composite.
`boolean` | `hasNext()`
`java.lang.Object` | `next()`
`void` | `remove()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CompositeIterator

    public CompositeIterator()

  Create a new composite iterator. Add iterators using the `add(Iterator)` method.

Method Detail

### add

    public void add(java.util.Iterator iterator)

  Add given iterator to this composite.

### hasNext

    public boolean hasNext()

  Specified by:
    `hasNext` in interface `java.util.Iterator`

### next

    public java.lang.Object next()

  Specified by:
    `next` in interface `java.util.Iterator`

### remove

    public void remove()

  Specified by:
    `remove` in interface `java.util.Iterator`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Web Flow
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD