T - the element typeX - the exception typepublic abstract class AbstractThrowingIterator<T,X extends Exception> extends Object implements ThrowingIterator<T,X>
AbstractIterator for ThrowingIterator.| Constructor and Description |
|---|
AbstractThrowingIterator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
computeNext() |
protected T |
endOfData() |
boolean |
hasNext()
Returns
true if the iteration has more elements. |
T |
next()
Returns the next element in the iteration.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removeprotected T endOfData()
public T next() throws X extends Exception
ThrowingIteratornext in interface ThrowingIterator<T,X extends Exception>X - if the next element could not be acquiredX extends ExceptionIterator.next()public boolean hasNext()
throws X extends Exception
ThrowingIteratortrue if the iteration has more elements. (In other words, returns true if ThrowingIterator.next()
would return an element rather than throwing an exception.)hasNext in interface ThrowingIterator<T,X extends Exception>true if the iteration has more elementsX - if the check for the next value failsX extends ExceptionIterator.hasNext()Copyright © 2015–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.