Package org.jdbi.v3.core.result
Class ResultIterable.ResultIteratorDelegate<T,R>
java.lang.Object
org.jdbi.v3.core.result.ResultIterable.ResultIteratorDelegate<T,R>
- Type Parameters:
T- iterable element type of delegateR- returned iterable element type, may be same as delegate's (T)
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterator<R>,ResultIterator<R>
- Enclosing interface:
ResultIterable<T>
public abstract static class ResultIterable.ResultIteratorDelegate<T,R>
extends Object
implements ResultIterator<R>
An implementation of
ResultIterator that delegates calls
to the iterator provided in the constructor.-
Method Summary
Modifier and TypeMethodDescriptionfinal voidclose()Close the underlying result set.final StatementContextReturns the currentStatementContext.booleanhasNext()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jdbi.v3.core.result.ResultIterator
forEachRemaining
-
Method Details
-
hasNext
public boolean hasNext() -
close
public final void close()Description copied from interface:ResultIteratorClose the underlying result set.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceResultIterator<T>
-
getContext
Description copied from interface:ResultIteratorReturns the currentStatementContext.- Specified by:
getContextin interfaceResultIterator<T>- Returns:
- the current
StatementContext.
-