- All Known Subinterfaces:
- All Known Implementing Classes:
public interface CloseableIteratorSet<E> extends Set<E>, CloseableIteratorCollection<E>A set that defines an iterator method that returns a
CloseableIteratorinstead 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.
CloseableSpliterator<E> spliterator()Description copied from interface:
This spliterator should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly