public class CloseableSpliteratorMapper<E,S> extends SpliteratorMapper<E,S> implements CloseableSpliterator<S>
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,T_CONS,T_SPLITR extends Spliterator.OfPrimitive<T,T_CONS,T_SPLITR>>
mapper, spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
Constructor and Description |
---|
CloseableSpliteratorMapper(Spliterator<E> spliterator,
Function<? super E,? extends S> mapper) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Spliterator<S> |
trySplit() |
characteristics, estimateSize, forEachRemaining, getExactSizeIfKnown, hasCharacteristics, tryAdvance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
characteristics, estimateSize, forEachRemaining, getComparator, getExactSizeIfKnown, hasCharacteristics, tryAdvance
public CloseableSpliteratorMapper(Spliterator<E> spliterator, Function<? super E,? extends S> mapper)
public Spliterator<S> trySplit()
trySplit
in interface Spliterator<S>
trySplit
in class SpliteratorMapper<E,S>
public void close()
close
in interface AutoCloseable
close
in interface CloseableSpliterator<S>
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.