IteratorWrapper (gCube Species Discovery 3.3.0-SNAPSHOT API)
Date: 2013-07-19

org.gcube.portlets.user.speciesdiscovery.server.stream

## Class IteratorWrapper<E>

- java.lang.Object
- - org.gcube.portlets.user.speciesdiscovery.server.stream.IteratorWrapper<E>

- All Implemented Interfaces:
    Closeable, AutoCloseable, Iterator<E>, CloseableIterator<E>

      public class IteratorWrapper<E>
      extends Object
      implements CloseableIterator<E>

  Author:
    "Federico De Faveri defaveri@isti.cnr.it"

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected Iterator<E>` | `iterator`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `IteratorWrapper(Iterator<E> iterator)`

  - ### Method Summary

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

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

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

- - ### Field Detail

    - #### iterator

          protected Iterator<E> iterator

  - ### Constructor Detail

    - #### IteratorWrapper

          public IteratorWrapper(Iterator<E> iterator)

      Parameters:
        `iterator` -

  - ### Method Detail

    - #### hasNext

          public boolean hasNext()

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

    - #### next

          public E next()

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

    - #### remove

          public void remove()

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

    - #### close

          public void close()

      Specified by:
        `close` in interface `Closeable`
      Specified by:
        `close` in interface `AutoCloseable`

Copyright © 2013. All Rights Reserved.