public interface CloseableIteratorSet<E> extends Set<E>, CloseableIteratorCollection<E>
CloseableIterator
instead of a non closeable one. This is needed so that iterators can be properly cleaned up. All other
methods will internally clean up any iterators created and don't have other side effects.| Modifier and Type | Method and Description |
|---|---|
CloseableSpliterator<E> |
spliterator() |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayiterator, parallelStream, streamremoveIfCloseableSpliterator<E> spliterator()
CloseableIteratorCollectionThis spliterator should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly
spliterator in interface CloseableIteratorCollection<E>spliterator in interface Collection<E>spliterator in interface Iterable<E>spliterator in interface Set<E>Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.