Package org.jdbi.v3.vavr
Class VavrCollectors
java.lang.Object
org.jdbi.v3.vavr.VavrCollectors
-
Method Summary
-
Method Details
-
toOption
Returns aCollector
that accumulates 0 or 1 input elements into anOption<T>
. The returned collector will throwIllegalStateException
whenever 2 or more elements are present in a stream. Null elements are mapped toOption.none()
.- Type Parameters:
T
- the collected type- Returns:
- a
Collector
which collects 0 or 1 input elements into anOption<T>
.
-