public class CollectionIteration<E,X extends Exception> extends AbstractCloseableIteration<E,X>
Collection of BindingSets.| Modifier and Type | Field and Description |
|---|---|
protected Collection<E> |
collection |
protected Iterator<E> |
iterator |
| Constructor and Description |
|---|
CollectionIteration(Collection<E> collection) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns true if the iteration has more elements.
|
E |
next()
Returns the next element in the iteration.
|
void |
remove()
Removes from the underlying collection the last element returned by the iteration (optional operation).
|
close, handleClose, isClosedprotected final Collection<E> collection
public CollectionIteration(Collection<E> collection)
collection - public boolean hasNext()
throws X extends Exception
IterationIteration.next()
would return an element rather than throwing a NoSuchElementException.)public E next() throws X extends Exception
IterationCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.