Package org.jdbi.v3.core.result
Interface IteratorCallback<T,R,X extends Exception>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback for use with
ResultIterable.withIterator(IteratorCallback)
-
Method Summary
Modifier and TypeMethodDescriptionwithIterator
(ResultIterator<T> iterator) Will be invoked with a Iterator<T>.
-
Method Details
-
withIterator
Will be invoked with a Iterator<T>. The iterator will be closed when this callback returns.- Parameters:
iterator
- iterator to be used only within scope of this callback- Returns:
- The return value of the callback
- Throws:
X
- optional exception thrown by the callback
-