Class DelegatingCloseableIterator<E>

java.lang.Object
org.eclipse.net4j.util.collection.DelegatingCloseableIterator<E>
All Implemented Interfaces:
Iterator<E>, Closeable, CloseableIterator<E>

public class DelegatingCloseableIterator<E> extends Object implements CloseableIterator<E>
Since:
3.7
Author:
Eike Stepper
  • Constructor Details

    • DelegatingCloseableIterator

      public DelegatingCloseableIterator(Iterator<E> delegate)
  • Method Details

    • 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
    • isClosed

      public boolean isClosed()
      Specified by:
      isClosed in interface Closeable