Package org.infinispan.stream.impl.local
Class ValueCacheCollection<K,V>
- java.lang.Object
-
- java.util.AbstractCollection<O>
-
- org.infinispan.commands.read.AbstractCloseableIteratorCollection<V,K,V>
-
- org.infinispan.stream.impl.local.ValueCacheCollection<K,V>
-
- Type Parameters:
K
- key type of the cacheV
- value type of the cache
- All Implemented Interfaces:
Iterable<V>
,Collection<V>
,CacheCollection<V>
,org.infinispan.commons.util.CloseableIteratorCollection<V>
public class ValueCacheCollection<K,V> extends AbstractCloseableIteratorCollection<V,K,V> implements CacheCollection<V>
CacheCollection that can be used for the values method of a cache. Backs all the calls to the cacheSet version allowing for key filtering still to be applied.
-
-
Field Summary
-
Fields inherited from class org.infinispan.commands.read.AbstractCloseableIteratorCollection
cache
-
-
Constructor Summary
Constructors Constructor Description ValueCacheCollection(Cache<K,V> cache, CacheSet<CacheEntry<K,V>> cacheSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(Object o)
boolean
containsAll(Collection<?> c)
org.infinispan.commons.util.CloseableIterator<V>
iterator()
CacheStream<V>
parallelStream()
boolean
remove(Object o)
org.infinispan.commons.util.CloseableSpliterator<V>
spliterator()
CacheStream<V>
stream()
-
Methods inherited from class org.infinispan.commands.read.AbstractCloseableIteratorCollection
clear, isEmpty, removeAll, retainAll, size, toArray, toArray
-
Methods inherited from class java.util.AbstractCollection
add, addAll, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
iterator
public org.infinispan.commons.util.CloseableIterator<V> iterator()
-
spliterator
public org.infinispan.commons.util.CloseableSpliterator<V> spliterator()
- Specified by:
spliterator
in interfaceorg.infinispan.commons.util.CloseableIteratorCollection<K>
- Specified by:
spliterator
in interfaceCollection<K>
- Specified by:
spliterator
in interfaceIterable<K>
- Specified by:
spliterator
in classAbstractCloseableIteratorCollection<V,K,V>
-
contains
public boolean contains(Object o)
- Specified by:
contains
in interfaceCollection<K>
- Specified by:
contains
in classAbstractCloseableIteratorCollection<V,K,V>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceCollection<K>
- Overrides:
containsAll
in classAbstractCollection<V>
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<K>
- Specified by:
remove
in classAbstractCloseableIteratorCollection<V,K,V>
-
stream
public CacheStream<V> stream()
- Specified by:
stream
in interfaceCacheCollection<K>
- Specified by:
stream
in interfaceorg.infinispan.commons.util.CloseableIteratorCollection<K>
- Specified by:
stream
in interfaceCollection<K>
-
parallelStream
public CacheStream<V> parallelStream()
- Specified by:
parallelStream
in interfaceCacheCollection<K>
- Specified by:
parallelStream
in interfaceorg.infinispan.commons.util.CloseableIteratorCollection<K>
- Specified by:
parallelStream
in interfaceCollection<K>
-
-