Class UnboundedLocalCache.KeySetView<K>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<K>
-
- com.github.benmanes.caffeine.cache.UnboundedLocalCache.KeySetView<K>
-
- All Implemented Interfaces:
java.lang.Iterable<K>,java.util.Collection<K>,java.util.Set<K>
- Enclosing class:
- UnboundedLocalCache<K,V>
static final class UnboundedLocalCache.KeySetView<K> extends java.util.AbstractSet<K>An adapter to safely externalize the keys.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) UnboundedLocalCache<K,?>cache
-
Constructor Summary
Constructors Constructor Description KeySetView(UnboundedLocalCache<K,?> cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontains(java.lang.Object o)booleanisEmpty()java.util.Iterator<K>iterator()booleanremove(java.lang.Object obj)intsize()java.util.Spliterator<K>spliterator()-
Methods inherited from class java.util.AbstractCollection
add, addAll, containsAll, retainAll, toArray, toArray, toString
-
-
-
-
Field Detail
-
cache
final UnboundedLocalCache<K,?> cache
-
-
Constructor Detail
-
KeySetView
KeySetView(UnboundedLocalCache<K,?> 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)
-
iterator
public java.util.Iterator<K> iterator()
-
spliterator
public java.util.Spliterator<K> spliterator()
-
-