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 protectedCacheEntrySet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(CacheEntry<K,V> entry)booleanaddAll(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.CloseableIteratorCollectionThis 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:
iteratorin interfaceorg.infinispan.commons.util.CloseableIteratorCollection<CacheEntry<K,V>>- Specified by:
iteratorin interfaceCollection<CacheEntry<K,V>>- Specified by:
iteratorin interfaceIterable<CacheEntry<K,V>>- Specified by:
iteratorin interfaceSet<CacheEntry<K,V>>
-
spliterator
public org.infinispan.commons.util.CloseableSpliterator<CacheEntry<K,V>> spliterator()
Description copied from interface:org.infinispan.commons.util.CloseableIteratorCollectionThis spliterator should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly
- Specified by:
spliteratorin interfaceorg.infinispan.commons.util.CloseableIteratorCollection<CacheEntry<K,V>>- Specified by:
spliteratorin interfaceorg.infinispan.commons.util.CloseableIteratorSet<CacheEntry<K,V>>- Specified by:
spliteratorin interfaceCollection<CacheEntry<K,V>>- Specified by:
spliteratorin interfaceIterable<CacheEntry<K,V>>- Specified by:
spliteratorin interfaceSet<CacheEntry<K,V>>
-
add
public boolean add(CacheEntry<K,V> entry)
- Specified by:
addin interfaceCollection<CacheEntry<K,V>>- Specified by:
addin interfaceSet<CacheEntry<K,V>>
-
addAll
public boolean addAll(Collection<? extends CacheEntry<K,V>> c)
- Specified by:
addAllin interfaceCollection<CacheEntry<K,V>>- Specified by:
addAllin interfaceSet<CacheEntry<K,V>>
-
stream
public CacheStream<CacheEntry<K,V>> stream()
Description copied from interface:org.infinispan.commons.util.CloseableIteratorCollectionThis stream should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly
- Specified by:
streamin interfaceCacheCollection<CacheEntry<K,V>>- Specified by:
streamin interfaceorg.infinispan.commons.util.CloseableIteratorCollection<CacheEntry<K,V>>- Specified by:
streamin interfaceCollection<CacheEntry<K,V>>
-
parallelStream
public CacheStream<CacheEntry<K,V>> parallelStream()
Description copied from interface:org.infinispan.commons.util.CloseableIteratorCollectionThis stream should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly
- Specified by:
parallelStreamin interfaceCacheCollection<CacheEntry<K,V>>- Specified by:
parallelStreamin interfaceorg.infinispan.commons.util.CloseableIteratorCollection<CacheEntry<K,V>>- Specified by:
parallelStreamin interfaceCollection<CacheEntry<K,V>>
-
-