WhereNotNullExtension<T extends Object> extension

Extends the Stream class with the ability to convert the source Stream to a Stream which emits all the non-null elements of this Stream, in their original emission order.

on

Methods

whereNotNull() Stream<T>

Available on Stream<T?>, provided by the WhereNotNullExtension extension

Returns a Stream which emits all the non-null elements of this Stream, in their original emission order.