Class BoundedLocalCache.ValuesView<K,V>
- java.lang.Object
-
- java.util.AbstractCollection<V>
-
- com.github.benmanes.caffeine.cache.BoundedLocalCache.ValuesView<K,V>
-
- All Implemented Interfaces:
java.lang.Iterable<V>
,java.util.Collection<V>
- Enclosing class:
- BoundedLocalCache<K,V>
static final class BoundedLocalCache.ValuesView<K,V> extends java.util.AbstractCollection<V>
An adapter to safely externalize the values.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) BoundedLocalCache<K,V>
cache
-
Constructor Summary
Constructors Constructor Description ValuesView(BoundedLocalCache<K,V> cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
contains(java.lang.Object o)
java.util.Iterator<V>
iterator()
boolean
removeIf(java.util.function.Predicate<? super V> filter)
int
size()
java.util.Spliterator<V>
spliterator()
-
Methods inherited from class java.util.AbstractCollection
add, addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
cache
final BoundedLocalCache<K,V> cache
-
-
Constructor Detail
-
ValuesView
ValuesView(BoundedLocalCache<K,V> cache)
-
-
Method Detail
-
size
public int size()
-
clear
public void clear()
-
contains
public boolean contains(java.lang.Object o)
-
removeIf
public boolean removeIf(java.util.function.Predicate<? super V> filter)
-
iterator
public java.util.Iterator<V> iterator()
-
spliterator
public java.util.Spliterator<V> spliterator()
-
-