Package org.eclipse.rdf4j.spring.support.query

## Class DelegatingIterator<T>

- java.lang.Object
- - org.eclipse.rdf4j.spring.support.query.DelegatingIterator<T>

- Type Parameters:
    `T` -
  All Implemented Interfaces:
    `Iterator<T>`

      public class DelegatingIterator<T>
      extends Object
      implements Iterator<T>

  Since:
    4.0.0
  Author:
    Florian Kleedorfer

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `DelegatingIterator​(Iterator<T> delegate)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `forEachRemaining​(Consumer<? super T> action)` |
    `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

    - #### DelegatingIterator

          public DelegatingIterator​(Iterator<T> delegate)

  - ### 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>`

    - #### forEachRemaining

          public void forEachRemaining​(Consumer<? super T> action)

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