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 void
close()
Close the underlying result set.final StatementContext
Returns the currentStatementContext
.boolean
hasNext()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jdbi.v3.core.result.ResultIterator
forEachRemaining
-
Method Details
-
hasNext
-
close
public final void close()Description copied from interface:ResultIterator
Close the underlying result set.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceResultIterator<T>
-
getContext
Description copied from interface:ResultIterator
Returns the currentStatementContext
.- Specified by:
getContext
in interfaceResultIterator<T>
- Returns:
- the current
StatementContext
.
-