MapNotNullExtension<T> extension

Extends the Stream class with the ability to convert the source Stream to a Stream containing only the non-null results of applying the given transform function to each element of this Stream.

on

Methods

mapNotNull<R extends Object>(R? transform(T)) Stream<R>
Returns a Stream containing only the non-null results of applying the given transform function to each element of this Stream.