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>
AdaptsSettoCloseableIteratorSet- 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 interface org.infinispan.commons.util.CloseableIteratorCollection
iterator, parallelStream, stream
-
-
-
-
Method Detail
-
spliterator
public CloseableSpliterator<E> spliterator()
Description copied from interface: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 interfaceCloseableIteratorCollection<E>- Specified by:
spliteratorin interfaceCloseableIteratorSet<E>- Overrides:
spliteratorin classCloseableIteratorCollectionAdapter<E>
-
-