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>

Available on Stream<T>, provided by the MapNotNullExtension extension

Returns a Stream containing only the non-null results of applying the given transform function to each element of this Stream.