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.
|
advance
final 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.ConcurrentHashMapSpliterator
trySplit
in interface ConcurrentHashMapV8.ConcurrentHashMapSpliterator<Map.Entry<K,V>>
public void forEachRemaining(ConcurrentHashMapV8.Action<? super Map.Entry<K,V>> action)
ConcurrentHashMapV8.ConcurrentHashMapSpliterator
forEachRemaining
in interface ConcurrentHashMapV8.ConcurrentHashMapSpliterator<Map.Entry<K,V>>
public boolean tryAdvance(ConcurrentHashMapV8.Action<? super Map.Entry<K,V>> action)
ConcurrentHashMapV8.ConcurrentHashMapSpliterator
tryAdvance
in interface ConcurrentHashMapV8.ConcurrentHashMapSpliterator<Map.Entry<K,V>>
public long estimateSize()
ConcurrentHashMapV8.ConcurrentHashMapSpliterator
estimateSize
in interface ConcurrentHashMapV8.ConcurrentHashMapSpliterator<Map.Entry<K,V>>
Copyright © 2010-2020 Toolsverse. All Rights Reserved.