Package org.infinispan.commons.util
Class CloseableIteratorSetAdapter<E>
java.lang.Object
org.infinispan.commons.util.CloseableIteratorCollectionAdapter<E>
org.infinispan.commons.util.CloseableIteratorSetAdapter<E>
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,Set<E>
,CloseableIteratorCollection<E>
,CloseableIteratorSet<E>
public class CloseableIteratorSetAdapter<E>
extends CloseableIteratorCollectionAdapter<E>
implements CloseableIteratorSet<E>
Adapts
Set
to CloseableIteratorSet
- Author:
- Radim Vansa <rvansa@redhat.com>
-
Field Summary
Fields inherited from class org.infinispan.commons.util.CloseableIteratorCollectionAdapter
delegate
-
Constructor Summary
-
Method Summary
Methods inherited from class org.infinispan.commons.util.CloseableIteratorCollectionAdapter
add, addAll, clear, contains, containsAll, isEmpty, iterator, 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 org.infinispan.commons.util.CloseableIteratorCollection
iterator, parallelStream, stream
Methods inherited from interface java.util.Collection
removeIf, toArray
-
Constructor Details
-
CloseableIteratorSetAdapter
-
-
Method Details
-
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 classCloseableIteratorCollectionAdapter<E>
-