public abstract static class StreamUtils.AbstractToPairSpliterator<K,V,M> extends Object implements Spliterator<StreamUtils.Pair<K,V>>
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,T_CONS,T_SPLITR extends Spliterator.OfPrimitive<T,T_CONS,T_SPLITR>>
Modifier and Type | Field and Description |
---|---|
protected K |
currentKey |
protected Iterator<V> |
flatMapIterator |
protected M |
mapper |
protected Iterator<K> |
streamIterator |
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
Constructor and Description |
---|
AbstractToPairSpliterator(Stream<K> stream,
M mapper) |
Modifier and Type | Method and Description |
---|---|
int |
characteristics() |
long |
estimateSize() |
protected abstract void |
nextKey() |
boolean |
tryAdvance(Consumer<? super StreamUtils.Pair<K,V>> action) |
Spliterator<StreamUtils.Pair<K,V>> |
trySplit() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, getComparator, getExactSizeIfKnown, hasCharacteristics
protected abstract void nextKey()
public boolean tryAdvance(Consumer<? super StreamUtils.Pair<K,V>> action)
tryAdvance
in interface Spliterator<StreamUtils.Pair<K,V>>
public Spliterator<StreamUtils.Pair<K,V>> trySplit()
trySplit
in interface Spliterator<StreamUtils.Pair<K,V>>
public long estimateSize()
estimateSize
in interface Spliterator<StreamUtils.Pair<K,V>>
public int characteristics()
characteristics
in interface Spliterator<StreamUtils.Pair<K,V>>
Copyright © 2021 JBoss by Red Hat. All rights reserved.