public class SingletonIteration<E,X extends Exception> extends AbstractCloseableIteration<E,X>
| Constructor and Description | 
|---|
| SingletonIteration(E value)Creates a new EmptyIteration. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | handleClose()Called by  AbstractCloseableIteration.close()when it is called for the first time. | 
| 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, isClosedpublic SingletonIteration(E value)
public boolean hasNext()
IterationIteration.next()
 would return an element rather than throwing a NoSuchElementException.)public E next() throws X extends Exception
Iterationpublic void remove()
Iterationprotected void handleClose()
                    throws X extends Exception
AbstractCloseableIterationAbstractCloseableIteration.close() when it is called for the first time. This method is only called once on each iteration.
 By default, this method does nothing.handleClose in class AbstractCloseableIteration<E,X extends Exception>XX extends ExceptionCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.