Package org.n52.janmayen
Class AbstractThrowingIterator<T,X extends Exception>
java.lang.Object
org.n52.janmayen.AbstractThrowingIterator<T,X>
- Type Parameters:
T- the element typeX- the exception type
- All Implemented Interfaces:
ThrowingIterator<T,X>
public abstract class AbstractThrowingIterator<T,X extends Exception>
extends Object
implements ThrowingIterator<T,X>
Copy of
AbstractIterator for ThrowingIterator.-
Constructor Details
-
AbstractThrowingIterator
public AbstractThrowingIterator()
-
-
Method Details
-
computeNext
- Throws:
X
-
endOfData
-
next
Description copied from interface:ThrowingIteratorReturns the next element in the iteration.- Specified by:
nextin interfaceThrowingIterator<T,X extends Exception> - Returns:
- the next element in the iteration
- Throws:
X- See Also:
-
hasNext
public boolean hasNext() throws XDescription copied from interface:ThrowingIteratorReturnstrueif the iteration has more elements. (In other words, returnstrueifThrowingIterator.next()would return an element rather than throwing an exception.)- Specified by:
hasNextin interfaceThrowingIterator<T,X extends Exception> - Returns:
trueif the iteration has more elements- Throws:
X- See Also:
-