static final class ConcurrentHashMapV8.KeySpliterator<K,V> extends ConcurrentHashMapV8.Traverser<K,V> implements ConcurrentHashMapV8.ConcurrentHashMapSpliterator<K>
Modifier and Type | Field and Description |
---|---|
(package private) long |
est |
Constructor and Description |
---|
KeySpliterator(ConcurrentHashMapV8.Node<K,V>[] tab,
int size,
int index,
int limit,
long est) |
Modifier and Type | Method and Description |
---|---|
long |
estimateSize()
Returns an estimate of the number of elements covered by
this Spliterator.
|
void |
forEachRemaining(ConcurrentHashMapV8.Action<? super K> action)
Applies the action to each untraversed element
|
boolean |
tryAdvance(ConcurrentHashMapV8.Action<? super K> action)
If an element remains, applies the action and returns true.
|
ConcurrentHashMapV8.ConcurrentHashMapSpliterator<K> |
trySplit()
If possible, returns a new spliterator covering
approximately one half of the elements, which will not be
covered by this spliterator.
|
advance
KeySpliterator(ConcurrentHashMapV8.Node<K,V>[] tab, int size, int index, int limit, long est)
public ConcurrentHashMapV8.ConcurrentHashMapSpliterator<K> trySplit()
ConcurrentHashMapV8.ConcurrentHashMapSpliterator
trySplit
in interface ConcurrentHashMapV8.ConcurrentHashMapSpliterator<K>
public void forEachRemaining(ConcurrentHashMapV8.Action<? super K> action)
ConcurrentHashMapV8.ConcurrentHashMapSpliterator
forEachRemaining
in interface ConcurrentHashMapV8.ConcurrentHashMapSpliterator<K>
public boolean tryAdvance(ConcurrentHashMapV8.Action<? super K> action)
ConcurrentHashMapV8.ConcurrentHashMapSpliterator
tryAdvance
in interface ConcurrentHashMapV8.ConcurrentHashMapSpliterator<K>
public long estimateSize()
ConcurrentHashMapV8.ConcurrentHashMapSpliterator
estimateSize
in interface ConcurrentHashMapV8.ConcurrentHashMapSpliterator<K>
Copyright © 2010-2020 Toolsverse. All Rights Reserved.