Package org.infinispan.cache.impl
Class SimpleCacheImpl.Values
- java.lang.Object
-
- org.infinispan.commons.util.CloseableIteratorCollectionAdapter<V>
-
- org.infinispan.cache.impl.SimpleCacheImpl.Values
-
- All Implemented Interfaces:
Iterable<V>
,Collection<V>
,CacheCollection<V>
,org.infinispan.commons.util.CloseableIteratorCollection<V>
- Enclosing class:
- SimpleCacheImpl<K,V>
protected class SimpleCacheImpl.Values extends org.infinispan.commons.util.CloseableIteratorCollectionAdapter<V> implements CacheCollection<V>
-
-
Constructor Summary
Constructors Constructor Description Values()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
isEmpty()
org.infinispan.commons.util.CloseableIterator<V>
iterator()
CacheStream<V>
parallelStream()
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
retainAll(Collection<?> c)
int
size()
CacheStream<V>
stream()
-
Methods inherited from class org.infinispan.commons.util.CloseableIteratorCollectionAdapter
add, addAll, contains, containsAll, spliterator, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.commons.util.CloseableIteratorCollection
spliterator
-
-
-
-
Method Detail
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interfaceCollection<V>
- Overrides:
retainAll
in classorg.infinispan.commons.util.CloseableIteratorCollectionAdapter<V>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interfaceCollection<V>
- Overrides:
removeAll
in classorg.infinispan.commons.util.CloseableIteratorCollectionAdapter<V>
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<V>
- Overrides:
remove
in classorg.infinispan.commons.util.CloseableIteratorCollectionAdapter<V>
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<V>
- Overrides:
clear
in classorg.infinispan.commons.util.CloseableIteratorCollectionAdapter<V>
-
iterator
public org.infinispan.commons.util.CloseableIterator<V> iterator()
Description copied from interface:org.infinispan.commons.util.CloseableIteratorCollection
This iterator should be explicitly closed when iteration upon it is completed. Failure to do so could cause resources to not be freed properly
-
size
public int size()
- Specified by:
size
in interfaceCollection<V>
- Overrides:
size
in classorg.infinispan.commons.util.CloseableIteratorCollectionAdapter<V>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<V>
- Overrides:
isEmpty
in classorg.infinispan.commons.util.CloseableIteratorCollectionAdapter<V>
-
stream
public CacheStream<V> stream()
Description copied from interface:org.infinispan.commons.util.CloseableIteratorCollection
This stream should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly
- Specified by:
stream
in interfaceCacheCollection<V>
- Specified by:
stream
in interfaceorg.infinispan.commons.util.CloseableIteratorCollection<V>
- Specified by:
stream
in interfaceCollection<V>
-
parallelStream
public CacheStream<V> parallelStream()
Description copied from interface:org.infinispan.commons.util.CloseableIteratorCollection
This stream should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly
- Specified by:
parallelStream
in interfaceCacheCollection<V>
- Specified by:
parallelStream
in interfaceorg.infinispan.commons.util.CloseableIteratorCollection<V>
- Specified by:
parallelStream
in interfaceCollection<V>
-
-