Uses of Class
io.blt.util.stream.SingletonCollectors.SingletonCollector
-
Uses of SingletonCollectors.SingletonCollector in io.blt.util.stream
Modifier and TypeMethodDescriptionstatic <T> SingletonCollectors.SingletonCollector
<T, T> SingletonCollectors.toNullable()
Returns aCollector
that accumulates the only element, if any, into a nullableObject
.static <T> SingletonCollectors.SingletonCollector
<T, Optional<T>> SingletonCollectors.toOptional()
Returns aCollector
that accumulates the only element, if any, into anOptional
.