com.netflix.servo.jsr166e
Interface ConcurrentHashMapV8.ConcurrentHashMapSpliterator<T>

Enclosing class:
ConcurrentHashMapV8<K,V>

public static interface ConcurrentHashMapV8.ConcurrentHashMapSpliterator<T>

An object for traversing and partitioning elements of a source. This interface provides a subset of the functionality of JDK8 java.util.Spliterator.


Method Summary
 long estimateSize()
          Returns an estimate of the number of elements covered by this Spliterator.
 void forEachRemaining(ConcurrentHashMapV8.Action<? super T> action)
          Applies the action to each untraversed element
 boolean tryAdvance(ConcurrentHashMapV8.Action<? super T> action)
          If an element remains, applies the action and returns true.
 ConcurrentHashMapV8.ConcurrentHashMapSpliterator<T> trySplit()
          If possible, returns a new spliterator covering approximately one half of the elements, which will not be covered by this spliterator.
 

Method Detail

trySplit

ConcurrentHashMapV8.ConcurrentHashMapSpliterator<T> trySplit()
If possible, returns a new spliterator covering approximately one half of the elements, which will not be covered by this spliterator. Returns null if cannot be split.


estimateSize

long estimateSize()
Returns an estimate of the number of elements covered by this Spliterator.


forEachRemaining

void forEachRemaining(ConcurrentHashMapV8.Action<? super T> action)
Applies the action to each untraversed element


tryAdvance

boolean tryAdvance(ConcurrentHashMapV8.Action<? super T> action)
If an element remains, applies the action and returns true.