Package org.infinispan.cache.impl
Class CacheBackedEntrySet<K,V>
java.lang.Object
org.infinispan.cache.impl.AbstractCacheBackedSet<K,V,CacheEntry<K,V>>
org.infinispan.cache.impl.CacheBackedEntrySet<K,V>
- All Implemented Interfaces:
Iterable<CacheEntry<K,
,V>> Collection<CacheEntry<K,
,V>> Set<CacheEntry<K,
,V>> CacheCollection<CacheEntry<K,
,V>> CacheSet<CacheEntry<K,
,V>> CloseableIteratorCollection<CacheEntry<K,
,V>> CloseableIteratorSet<CacheEntry<K,
V>>
Entry set backed by a cache.
Implements CacheSet<CacheEntry<K, V>>
but it is also (mis-)used as a CacheSet<Map.Entry<K, V>>
.
This works because add()
and addAll()
are not implemented.
- Since:
- 13.0
-
Field Summary
Fields inherited from class org.infinispan.cache.impl.AbstractCacheBackedSet
cache, explicitFlags, lockOwner
-
Constructor Summary
ConstructorDescriptionCacheBackedEntrySet
(CacheImpl<K, V> cache, Object lockOwner, long explicitFlags) -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected Object
extractKey
(Object e) Extract the key from a set element.protected CacheEntry
<K, V> wrapElement
(CacheEntry<K, V> e) Wrap the element if neededMethods inherited from class org.infinispan.cache.impl.AbstractCacheBackedSet
add, addAll, clear, containsAll, decoratedWriteContextBuilder, forEach, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.CacheCollection
localPublisher, localPublisher
Methods inherited from interface java.util.Collection
toArray
-
Constructor Details
-
CacheBackedEntrySet
-
-
Method Details
-
contains
- Specified by:
contains
in interfaceCollection<K>
- Specified by:
contains
in interfaceSet<K>
- Specified by:
contains
in classAbstractCacheBackedSet<K,
V, CacheEntry<K, V>>
-
entryToKeyFunction
- Specified by:
entryToKeyFunction
in classAbstractCacheBackedSet<K,
V, CacheEntry<K, V>>
-
extractKey
Description copied from class:AbstractCacheBackedSet
Extract the key from a set element.- Specified by:
extractKey
in classAbstractCacheBackedSet<K,
V, CacheEntry<K, V>>
-
wrapElement
Description copied from class:AbstractCacheBackedSet
Wrap the element if needed- Specified by:
wrapElement
in classAbstractCacheBackedSet<K,
V, CacheEntry<K, V>>
-