Package io.hekate.core.internal.util
Class StreamUtils
- java.lang.Object
-
- io.hekate.core.internal.util.StreamUtils
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Stream<T>
nullSafe(Collection<T> collection)
Returns aStream
that filters out allnull
values.
-
-
-
Method Detail
-
nullSafe
public static <T> Stream<T> nullSafe(Collection<T> collection)
Returns aStream
that filters out allnull
values.- Type Parameters:
T
- Stream type.- Parameters:
collection
- Collection (can benull
, in suchStream.empty()
will be returned).- Returns:
- Null-safe stream.
-
-