org.apache.myfaces.trinidad.component

## Class CompositeIterator<T>

- java.lang.Object
- - org.apache.myfaces.trinidad.component.CompositeIterator<T>

- All Implemented Interfaces:
    Iterator<T>

      public final class CompositeIterator<T>
      extends Object
      implements Iterator<T>

  not thread safe, though it could be as thread-safe as the underlying Iterators at a slight cost to performance and size

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CompositeIterator(Iterator<T> firstIterator, Iterator<T> secondIterator)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `hasNext()`
    `T` | `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(Iterator<T> firstIterator,
                           Iterator<T> secondIterator)

  - ### Method Detail

    - #### hasNext

          public boolean hasNext()

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

    - #### next

          public T next()

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

    - #### remove

          public void remove()

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

Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.