- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ResultSetAccumulator<T>
applyExtract a single row from the result set, and combine it with the accumulator to produce a result.
previous- the previous object
rs- the ResultSet, please do not advance it
ctx- the statement context
- the accumulated value
SQLException- in the face of grave danger