Class CacheBackedKeySet<K,V>
java.lang.Object
org.infinispan.cache.impl.AbstractCacheBackedSet<K,V,K>
org.infinispan.cache.impl.CacheBackedKeySet<K,V>
- All Implemented Interfaces:
Iterable<K>, Collection<K>, Set<K>, CacheCollection<K>, CacheSet<K>, CloseableIteratorCollection<K>, CloseableIteratorSet<K>
Key set backed by a cache.
- Since:
- 13.0
-
Field Summary
Fields inherited from class AbstractCacheBackedSet
cache, explicitFlags, lockOwner -
Constructor Summary
ConstructorsConstructorDescriptionCacheBackedKeySet(CacheImpl<K, V> cache, Object lockOwner, long explicitFlags) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected ObjectextractKey(Object e) Extract the key from a set element.protected KwrapElement(K e) Wrap the element if neededMethods inherited from class AbstractCacheBackedSet
add, addAll, clear, containsAll, decoratedWriteContextBuilder, forEach, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface CacheCollection
localPublisher, localPublisherMethods inherited from interface Collection
toArray
-
Constructor Details
-
CacheBackedKeySet
-
-
Method Details
-
contains
-
entryToKeyFunction
- Specified by:
entryToKeyFunctionin classAbstractCacheBackedSet<K,V, K>
-
extractKey
Description copied from class:AbstractCacheBackedSetExtract the key from a set element.- Specified by:
extractKeyin classAbstractCacheBackedSet<K,V, K>
-
wrapElement
Description copied from class:AbstractCacheBackedSetWrap the element if needed- Specified by:
wrapElementin classAbstractCacheBackedSet<K,V, K>
-