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).-
Nested Class Summary
Nested classes/interfaces inherited from interface Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,T_CONS, T_SPLITR> -
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.Fields inherited from interface Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED -
Constructor Summary
ConstructorsConstructorDescriptionIterationSpliterator(Iteration<T, ? extends Exception> iteration) Deprecated.Creates aSpliteratorimplementation that wraps the suppliedIteration. -
Method Summary
Modifier and TypeMethodDescriptionvoidforEachRemaining(Consumer<? super T> action) Deprecated.booleantryAdvance(Consumer<? super T> action) Deprecated.Methods inherited from class Spliterators.AbstractSpliterator
characteristics, estimateSize, trySplitMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Spliterator
getComparator, getExactSizeIfKnown, hasCharacteristics
-
Field Details
-
iteration
-
-
Constructor Details
-
IterationSpliterator
Deprecated.Creates aSpliteratorimplementation that wraps the suppliedIteration. 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 aCloseableIteration).- Parameters:
iteration- the iteration to wrap
-
-
Method Details
-
tryAdvance
-
forEachRemaining
-