Package org.infinispan.util
Class AbstractDelegatingCacheCollection<E>
- java.lang.Object
-
- org.infinispan.commons.util.AbstractDelegatingCollection<E>
-
- org.infinispan.util.AbstractDelegatingCloseableIteratorCollection<E>
-
- org.infinispan.util.AbstractDelegatingCacheCollection<E>
-
- Type Parameters:
E
-
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,CacheCollection<E>
,CloseableIteratorCollection<E>
- Direct Known Subclasses:
AbstractDelegatingCacheSet
public abstract class AbstractDelegatingCacheCollection<E> extends AbstractDelegatingCloseableIteratorCollection<E> implements CacheCollection<E>
-
-
Constructor Summary
Constructors Constructor Description AbstractDelegatingCacheCollection()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract CacheCollection<E>
delegate()
CacheStream<E>
parallelStream()
CacheStream<E>
stream()
-
Methods inherited from class org.infinispan.util.AbstractDelegatingCloseableIteratorCollection
iterator, spliterator
-
Methods inherited from class org.infinispan.commons.util.AbstractDelegatingCollection
add, addAll, clear, contains, containsAll, forEach, isEmpty, remove, removeAll, removeIf, 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 org.infinispan.commons.util.CloseableIteratorCollection
iterator, spliterator
-
-
-
-
Method Detail
-
delegate
protected abstract CacheCollection<E> delegate()
- Specified by:
delegate
in classAbstractDelegatingCloseableIteratorCollection<E>
-
stream
public CacheStream<E> stream()
Description copied from interface: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<E>
- Specified by:
stream
in interfaceCloseableIteratorCollection<E>
- Specified by:
stream
in interfaceCollection<E>
- Overrides:
stream
in classAbstractDelegatingCollection<E>
-
parallelStream
public CacheStream<E> parallelStream()
Description copied from interface: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<E>
- Specified by:
parallelStream
in interfaceCloseableIteratorCollection<E>
- Specified by:
parallelStream
in interfaceCollection<E>
- Overrides:
parallelStream
in classAbstractDelegatingCollection<E>
-
-