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>
AdaptsSet
toCloseableIteratorSet
- Author:
- Radim Vansa <rvansa@redhat.com>
-
-
Field Summary
-
Fields inherited from class org.infinispan.commons.util.CloseableIteratorCollectionAdapter
delegate
-
-
Constructor Summary
Constructors Constructor Description CloseableIteratorSetAdapter(Set<E> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloseableSpliterator<E>
spliterator()
-
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
-
-
-
-
Method Detail
-
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 classCloseableIteratorCollectionAdapter<E>
-
-