@Deprecated @InternalUseOnly public class CloseablePeakableIteration<E,X extends Exception> extends Object implements CloseableIteration<E,X>
| Constructor and Description | 
|---|
| CloseablePeakableIteration(CloseableIteration<E,X> parent)Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Deprecated.  Closes this iteration, freeing any resources that it is holding. | 
| boolean | hasNext()Deprecated.  Returns true if the iteration has more elements. | 
| E | next()Deprecated.  Returns the next element in the iteration. | 
| E | peek()Deprecated.  | 
| void | remove()Deprecated.  Removes from the underlying collection the last element returned by the iteration (optional operation). | 
public CloseablePeakableIteration(CloseableIteration<E,X> parent)
public void close()
           throws X extends Exception
CloseableIterationclose in interface AutoCloseableclose in interface CloseableIteration<E,X extends Exception>X extends Exceptionpublic boolean hasNext()
                throws X extends Exception
IterationIteration.next()
 would return an element rather than throwing a NoSuchElementException.)public E next() throws X extends Exception
Iterationpublic void remove()
            throws X extends Exception
IterationCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.