E
- The type in the collectionpublic abstract class AbstractDelegatingCloseableIteratorCollection<E> extends AbstractDelegatingCollection<E> implements CloseableIteratorCollection<E>
delegate()
method.Constructor and Description |
---|
AbstractDelegatingCloseableIteratorCollection() |
Modifier and Type | Method and Description |
---|---|
protected abstract CloseableIteratorCollection<E> |
delegate() |
CloseableIterator<E> |
iterator() |
CloseableSpliterator<E> |
spliterator() |
add, addAll, clear, contains, containsAll, forEach, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, size, stream, toArray, toArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parallelStream, stream
public AbstractDelegatingCloseableIteratorCollection()
protected abstract CloseableIteratorCollection<E> delegate()
delegate
in class AbstractDelegatingCollection<E>
public CloseableIterator<E> iterator()
CloseableIteratorCollection
This iterator should be explicitly closed when iteration upon it is completed. Failure to do so could cause resources to not be freed properly
iterator
in interface Iterable<E>
iterator
in interface Collection<E>
iterator
in interface CloseableIteratorCollection<E>
iterator
in class AbstractDelegatingCollection<E>
public CloseableSpliterator<E> spliterator()
CloseableIteratorCollection
This 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 Iterable<E>
spliterator
in interface Collection<E>
spliterator
in interface CloseableIteratorCollection<E>
spliterator
in class AbstractDelegatingCollection<E>
Copyright © 2021 JBoss by Red Hat. All rights reserved.