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