public interface CloseableIteratorCollection<E> extends Collection<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 |
---|---|
CloseableIterator<E> |
iterator() |
CloseableSpliterator<E> |
spliterator() |
CloseableIterator<E> iterator()
CloseableSpliterator<E> spliterator()
spliterator
in interface Collection<E>
spliterator
in interface Iterable<E>
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.