E
- the type of elements returned by this iterator@Internal public interface ThrowingIterator<E> extends Closeable
Iterator
interface that lets the implementation throw an IOException
.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.
|
boolean hasNext()
true
if the iteration has more elements. (In other words, returns true
if next()
would return an element rather than throwing an exception.)true
if the iteration has more elementsE next() throws IOException, StateMigrationException
NoSuchElementException
- if the iteration has no more elementsIOException
StateMigrationException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.