Package org.infinispan.cache.impl
Class SimpleCacheImpl.CacheEntrySet
- java.lang.Object
-
- org.infinispan.cache.impl.SimpleCacheImpl.EntrySetBase<CacheEntry<K,V>>
-
- org.infinispan.cache.impl.SimpleCacheImpl.CacheEntrySet
-
- All Implemented Interfaces:
Iterable<CacheEntry<K,V>>
,Collection<CacheEntry<K,V>>
,Set<CacheEntry<K,V>>
,CacheCollection<CacheEntry<K,V>>
,CacheSet<CacheEntry<K,V>>
,org.infinispan.commons.util.CloseableIteratorCollection<CacheEntry<K,V>>
,org.infinispan.commons.util.CloseableIteratorSet<CacheEntry<K,V>>
- Enclosing class:
- SimpleCacheImpl<K,V>
protected class SimpleCacheImpl.CacheEntrySet extends SimpleCacheImpl.EntrySetBase<CacheEntry<K,V>> implements CacheSet<CacheEntry<K,V>>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CacheEntrySet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(CacheEntry<K,V> entry)
boolean
addAll(Collection<? extends CacheEntry<K,V>> c)
org.infinispan.commons.util.CloseableIterator<CacheEntry<K,V>>
iterator()
CacheStream<CacheEntry<K,V>>
parallelStream()
org.infinispan.commons.util.CloseableSpliterator<CacheEntry<K,V>>
spliterator()
CacheStream<CacheEntry<K,V>>
stream()
-
Methods inherited from class org.infinispan.cache.impl.SimpleCacheImpl.EntrySetBase
clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
removeIf, toArray
-
-
-
-
Method Detail
-
iterator
public org.infinispan.commons.util.CloseableIterator<CacheEntry<K,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
- Specified by:
iterator
in interfaceorg.infinispan.commons.util.CloseableIteratorCollection<CacheEntry<K,V>>
- Specified by:
iterator
in interfaceCollection<CacheEntry<K,V>>
- Specified by:
iterator
in interfaceIterable<CacheEntry<K,V>>
- Specified by:
iterator
in interfaceSet<CacheEntry<K,V>>
-
spliterator
public org.infinispan.commons.util.CloseableSpliterator<CacheEntry<K,V>> spliterator()
Description copied from interface:org.infinispan.commons.util.CloseableIteratorCollection
This spliterator should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly
- Specified by:
spliterator
in interfaceorg.infinispan.commons.util.CloseableIteratorCollection<CacheEntry<K,V>>
- Specified by:
spliterator
in interfaceorg.infinispan.commons.util.CloseableIteratorSet<CacheEntry<K,V>>
- Specified by:
spliterator
in interfaceCollection<CacheEntry<K,V>>
- Specified by:
spliterator
in interfaceIterable<CacheEntry<K,V>>
- Specified by:
spliterator
in interfaceSet<CacheEntry<K,V>>
-
add
public boolean add(CacheEntry<K,V> entry)
- Specified by:
add
in interfaceCollection<CacheEntry<K,V>>
- Specified by:
add
in interfaceSet<CacheEntry<K,V>>
-
addAll
public boolean addAll(Collection<? extends CacheEntry<K,V>> c)
- Specified by:
addAll
in interfaceCollection<CacheEntry<K,V>>
- Specified by:
addAll
in interfaceSet<CacheEntry<K,V>>
-
stream
public CacheStream<CacheEntry<K,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<CacheEntry<K,V>>
- Specified by:
stream
in interfaceorg.infinispan.commons.util.CloseableIteratorCollection<CacheEntry<K,V>>
- Specified by:
stream
in interfaceCollection<CacheEntry<K,V>>
-
parallelStream
public CacheStream<CacheEntry<K,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<CacheEntry<K,V>>
- Specified by:
parallelStream
in interfaceorg.infinispan.commons.util.CloseableIteratorCollection<CacheEntry<K,V>>
- Specified by:
parallelStream
in interfaceCollection<CacheEntry<K,V>>
-
-