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