Interface IteratorConsumer<T,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.useIterator(IteratorConsumer)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
useIterator
(ResultIterator<T> iterator) Will be invoked with result iterator.
-
Method Details
-
useIterator
Will be invoked with result iterator. The iterator will be closed when this callback returns.- Parameters:
iterator
- iterator to be used only within scope of this callback- Throws:
X
- optional exception thrown by the callback
-