IteratorWrapper (Neo4j Community 2.1.0-M01 API)
Date: 2014-02-20

org.neo4j.helpers.collection

## Class IteratorWrapper<T,U>

- java.lang.Object
- - org.neo4j.helpers.collection.IteratorWrapper<T,U>

- Type Parameters:
    `T` - the type of items to return
    `U` - the type of items to wrap/convert from
  All Implemented Interfaces:
    Iterator<T>

      public abstract class IteratorWrapper<T,U>
      extends Object
      implements Iterator<T>

  Wraps an `Iterator` so that it returns items of another type. The iteration is done lazily.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `IteratorWrapper(Iterator<U> iteratorToWrap)`

  - ### Method Summary

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

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

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

- - ### Constructor Detail

    - #### IteratorWrapper

          public IteratorWrapper(Iterator<U> iteratorToWrap)

  - ### 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 © 2002–2014 The Neo4j Graph Database Project. All rights reserved.