Class UnboundedLocalCache.ValuesView<K,V>
java.lang.Object
java.util.AbstractCollection<V>
com.github.benmanes.caffeine.cache.UnboundedLocalCache.ValuesView<K,V>
- All Implemented Interfaces:
Iterable<V>, Collection<V>
- Enclosing class:
UnboundedLocalCache<K,V>
An adapter to safely externalize the values.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractCollection
add, addAll, containsAll, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Collection
equals, hashCode, parallelStream, stream, toArray
-
Field Details
-
cache
-
-
Constructor Details
-
ValuesView
ValuesView(UnboundedLocalCache<K, V> cache)
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<K>- Overrides:
isEmptyin classAbstractCollection<V>
-
size
public int size()- Specified by:
sizein interfaceCollection<K>- Specified by:
sizein classAbstractCollection<V>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<K>- Overrides:
clearin classAbstractCollection<V>
-
contains
- Specified by:
containsin interfaceCollection<K>- Overrides:
containsin classAbstractCollection<V>
-
removeIf
-
iterator
-
spliterator
-