Class IterationSpliterator<T>
- java.lang.Object
-
- java.util.Spliterators.AbstractSpliterator<T>
-
- org.eclipse.rdf4j.common.iteration.IterationSpliterator<T>
-
- All Implemented Interfaces:
java.util.Spliterator<T>
@Deprecated(since="4.1.0") public class IterationSpliterator<T> extends java.util.Spliterators.AbstractSpliterator<T>Deprecated.ASpliteratorimplementation that wraps anIteration. 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).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.Spliterator
java.util.Spliterator.OfDouble, java.util.Spliterator.OfInt, java.util.Spliterator.OfLong, java.util.Spliterator.OfPrimitive<T extends java.lang.Object,T_CONS extends java.lang.Object,T_SPLITR extends java.util.Spliterator.OfPrimitive<T,T_CONS,T_SPLITR>>
-
-
Constructor Summary
Constructors Constructor Description IterationSpliterator(Iteration<T,? extends java.lang.Exception> iteration)Deprecated.Creates aSpliteratorimplementation that wraps the suppliedIteration.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidforEachRemaining(java.util.function.Consumer<? super T> action)Deprecated.booleantryAdvance(java.util.function.Consumer<? super T> action)Deprecated.-
Methods inherited from class java.util.Spliterators.AbstractSpliterator
characteristics, estimateSize, trySplit
-
-
-
-
Constructor Detail
-
IterationSpliterator
public IterationSpliterator(Iteration<T,? extends java.lang.Exception> iteration)
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
-
-