public class CloseableIteratorIteration<E,X extends Exception> extends AbstractCloseableIteration<E,X>
Iterator to a CloseableIteration.| Constructor and Description | 
|---|
| CloseableIteratorIteration()Creates an uninitialized CloseableIteratorIteration, needs to be initialized by calling
  setIterator(Iterator)before it can be used. | 
| CloseableIteratorIteration(Iterator<? extends E> iter)Creates a CloseableIteratorIteration that wraps the supplied iterator. | 
| 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). | 
| protected void | setIterator(Iterator<? extends E> iter) | 
close, handleClose, isClosedpublic CloseableIteratorIteration()
setIterator(Iterator) before it can be used.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-2020 Eclipse Foundation. All Rights Reserved.