Package org.jdbi.v3.vavr
Class VavrCollectors
java.lang.Object
org.jdbi.v3.vavr.VavrCollectors
- 
Method Summary
- 
Method Details- 
toOptionReturns 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>.
 
 
-