public class IterationSpliterator<T> extends Spliterators.AbstractSpliterator<T>
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).Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,T_CONS,T_SPLITR extends Spliterator.OfPrimitive<T,T_CONS,T_SPLITR>>CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED| Constructor and Description |
|---|
IterationSpliterator(Iteration<T,? extends Exception> iteration)
Creates a
Spliterator implementation that wraps the supplied Iteration. |
| Modifier and Type | Method and Description |
|---|---|
void |
forEachRemaining(java.util.function.Consumer<? super T> action) |
boolean |
tryAdvance(java.util.function.Consumer<? super T> action) |
characteristics, estimateSize, trySplitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComparator, getExactSizeIfKnown, hasCharacteristicspublic IterationSpliterator(Iteration<T,? extends Exception> iteration)
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).iteration - the iteration to wrappublic boolean tryAdvance(java.util.function.Consumer<? super T> action)
public void forEachRemaining(java.util.function.Consumer<? super T> action)
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.