Class IterationSpliterator<T>

java.lang.Object
java.util.Spliterators.AbstractSpliterator<T>
org.eclipse.rdf4j.common.iteration.IterationSpliterator<T>
All Implemented Interfaces:
Spliterator<T>

@Deprecated(since="4.1.0") public class IterationSpliterator<T> extends Spliterators.AbstractSpliterator<T>
Deprecated.
A Spliterator implementation that wraps an Iteration. It handles occurrence of checked exceptions by wrapping them in RuntimeExceptions, and in addition ensures that the wrapped Iteration is closed when exhausted (if it's a CloseableIteration).
Author:
Jeen Broekstra
  • Constructor Details Link icon

    • IterationSpliterator Link icon

      public IterationSpliterator(Iteration<T,? extends Exception> iteration)
      Deprecated.
      Creates a Spliterator implementation that wraps the supplied Iteration. It handles occurrence of checked exceptions by wrapping them in RuntimeExceptions, and in addition ensures that the wrapped Iteration is closed when exhausted (if it's a CloseableIteration).
      Parameters:
      iteration - the iteration to wrap
  • Method Details Link icon

    • tryAdvance Link icon

      public boolean tryAdvance(Consumer<? super T> action)
      Deprecated.
    • forEachRemaining Link icon

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