T - the element typeX - the exception typepublic abstract class AbstractThrowingIterator<T,X extends java.lang.Exception> extends java.lang.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 abstract T computeNext() throws X extends java.lang.Exception
X extends java.lang.Exceptionprotected T endOfData()
public T next() throws X extends java.lang.Exception
ThrowingIteratornext in interface ThrowingIterator<T,X extends java.lang.Exception>X - if the next element could not be acquiredX extends java.lang.ExceptionIterator.next()public boolean hasNext()
throws X extends java.lang.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 java.lang.Exception>true if the iteration has more elementsX - if the check for the next value failsX extends java.lang.ExceptionIterator.hasNext()Copyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.