Uses of Class
io.blt.util.stream.SingletonCollectors.SingletonCollector
Packages that use SingletonCollectors.SingletonCollector
-
Uses of SingletonCollectors.SingletonCollector in io.blt.util.stream
Methods in io.blt.util.stream that return SingletonCollectors.SingletonCollectorModifier 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
.