Class BoundedLocalCache.KeySpliterator<K,V>
java.lang.Object
com.github.benmanes.caffeine.cache.BoundedLocalCache.KeySpliterator<K,V>
- All Implemented Interfaces:
Spliterator<K>
- Enclosing class:
BoundedLocalCache<K,V>
An adapter to safely externalize the key spliterator.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,T_CONS, T_SPLITR> -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final BoundedLocalCache<K, V> (package private) final Spliterator<Node<K, V>> Fields inherited from interface Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED -
Constructor Summary
ConstructorsConstructorDescriptionKeySpliterator(BoundedLocalCache<K, V> cache) KeySpliterator(BoundedLocalCache<K, V> cache, Spliterator<Node<K, V>> spliterator) -
Method Summary
Modifier and TypeMethodDescriptionintlongvoidforEachRemaining(Consumer<? super K> action) booleantryAdvance(Consumer<? super K> action) @Nullable Spliterator<K> trySplit()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Spliterator
getComparator, getExactSizeIfKnown, hasCharacteristics
-
Field Details
-
spliterator
-
cache
-
-
Constructor Details
-
KeySpliterator
KeySpliterator(BoundedLocalCache<K, V> cache) -
KeySpliterator
KeySpliterator(BoundedLocalCache<K, V> cache, Spliterator<Node<K, V>> spliterator)
-
-
Method Details
-
forEachRemaining
- Specified by:
forEachRemainingin interfaceSpliterator<K>
-
tryAdvance
- Specified by:
tryAdvancein interfaceSpliterator<K>
-
trySplit
- Specified by:
trySplitin interfaceSpliterator<K>
-
estimateSize
public long estimateSize()- Specified by:
estimateSizein interfaceSpliterator<K>
-
characteristics
public int characteristics()- Specified by:
characteristicsin interfaceSpliterator<K>
-