Package org.infinispan.util
Class AbstractDelegatingCloseableIteratorSet<E>
- java.lang.Object
-
- org.infinispan.commons.util.AbstractDelegatingCollection<E>
-
- org.infinispan.commons.util.AbstractDelegatingSet<E>
-
- org.infinispan.util.AbstractDelegatingCloseableIteratorSet<E>
-
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,Set<E>
,CloseableIteratorCollection<E>
,CloseableIteratorSet<E>
public abstract class AbstractDelegatingCloseableIteratorSet<E> extends AbstractDelegatingSet<E> implements CloseableIteratorSet<E>
-
-
Constructor Summary
Constructors Constructor Description AbstractDelegatingCloseableIteratorSet()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract CloseableIteratorSet<E>
delegate()
CloseableIterator<E>
iterator()
CloseableSpliterator<E>
spliterator()
-
Methods inherited from class org.infinispan.commons.util.AbstractDelegatingCollection
add, addAll, clear, contains, containsAll, forEach, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, size, stream, 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
parallelStream, stream
-
Methods inherited from interface java.util.Collection
removeIf, toArray
-
-
-
-
Method Detail
-
delegate
protected abstract CloseableIteratorSet<E> delegate()
- Specified by:
delegate
in classAbstractDelegatingSet<E>
-
iterator
public CloseableIterator<E> iterator()
Description copied from interface: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 interfaceCloseableIteratorCollection<E>
- Specified by:
iterator
in interfaceCollection<E>
- Specified by:
iterator
in interfaceIterable<E>
- Specified by:
iterator
in interfaceSet<E>
- Overrides:
iterator
in classAbstractDelegatingCollection<E>
-
spliterator
public CloseableSpliterator<E> spliterator()
Description copied from interface: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 interfaceCloseableIteratorCollection<E>
- Specified by:
spliterator
in interfaceCloseableIteratorSet<E>
- Specified by:
spliterator
in interfaceCollection<E>
- Specified by:
spliterator
in interfaceIterable<E>
- Specified by:
spliterator
in interfaceSet<E>
- Overrides:
spliterator
in classAbstractDelegatingCollection<E>
-
-