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