Class IteratorIteration<E>

java.lang.Object
org.eclipse.rdf4j.common.iteration.IteratorIteration<E>
All Implemented Interfaces:
AutoCloseable, Iterator<E>, CloseableIteration<E>

@Deprecated(since="4.1.0") public class IteratorIteration<E> extends Object implements CloseableIteration<E>
Deprecated.
An Iteration that can convert an Iterator to a CloseableIteration.
  • Constructor Details

    • IteratorIteration

      public IteratorIteration(Iterator<? extends E> iter)
      Deprecated.
  • Method Details

    • hasNext

      public boolean hasNext()
      Deprecated.
      Specified by:
      hasNext in interface Iterator<E>
    • next

      public E next()
      Deprecated.
      Specified by:
      next in interface Iterator<E>
    • remove

      public void remove()
      Deprecated.
      Specified by:
      remove in interface Iterator<E>
    • close

      public void close()
      Deprecated.
      Description copied from interface: CloseableIteration
      Closes this iteration, freeing any resources that it is holding. If the iteration has already been closed then invoking this method has no effect.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface CloseableIteration<E>