Class UnboundedLocalCache.EntrySetView<K,V>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<java.util.Map.Entry<K,V>>
-
- com.github.benmanes.caffeine.cache.UnboundedLocalCache.EntrySetView<K,V>
-
- All Implemented Interfaces:
java.lang.Iterable<java.util.Map.Entry<K,V>>
,java.util.Collection<java.util.Map.Entry<K,V>>
,java.util.Set<java.util.Map.Entry<K,V>>
- Enclosing class:
- UnboundedLocalCache<K,V>
static final class UnboundedLocalCache.EntrySetView<K,V> extends java.util.AbstractSet<java.util.Map.Entry<K,V>>
An adapter to safely externalize the entries.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) UnboundedLocalCache<K,V>
cache
-
Constructor Summary
Constructors Constructor Description EntrySetView(UnboundedLocalCache<K,V> cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
contains(java.lang.Object o)
boolean
isEmpty()
java.util.Iterator<java.util.Map.Entry<K,V>>
iterator()
boolean
remove(java.lang.Object obj)
boolean
removeIf(java.util.function.Predicate<? super java.util.Map.Entry<K,V>> filter)
int
size()
java.util.Spliterator<java.util.Map.Entry<K,V>>
spliterator()
-
Methods inherited from class java.util.AbstractCollection
add, addAll, containsAll, retainAll, toArray, toArray, toString
-
-
-
-
Field Detail
-
cache
final UnboundedLocalCache<K,V> cache
-
-
Constructor Detail
-
EntrySetView
EntrySetView(UnboundedLocalCache<K,V> cache)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
clear
public void clear()
-
contains
public boolean contains(java.lang.Object o)
-
remove
public boolean remove(java.lang.Object obj)
-
removeIf
public boolean removeIf(java.util.function.Predicate<? super java.util.Map.Entry<K,V>> filter)
-
-