public abstract class AbstractDelegatingCloseableIteratorSet<E> extends AbstractDelegatingSet<E> implements CloseableIteratorSet<E>
Constructor and Description |
---|
AbstractDelegatingCloseableIteratorSet() |
Modifier and Type | Method and Description |
---|---|
protected abstract CloseableIteratorSet<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
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
parallelStream, stream
removeIf
public AbstractDelegatingCloseableIteratorSet()
protected abstract CloseableIteratorSet<E> delegate()
delegate
in class AbstractDelegatingSet<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 Set<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 Set<E>
spliterator
in interface CloseableIteratorCollection<E>
spliterator
in interface CloseableIteratorSet<E>
spliterator
in class AbstractDelegatingCollection<E>
Copyright © 2021 JBoss by Red Hat. All rights reserved.