public class StreamUtils extends Object
Constructor and Description |
---|
StreamUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> boolean |
ifNullOr(T nullable,
boolean ifNull,
Predicate<T> ifNotNull)
Returns ifNull if the nullable is null.
|
static <T> boolean |
nullToFalseOrPredicate(T nullable,
Predicate<T> ifNotNull)
Returns false if the nullable is null.
|
public static <T> boolean nullToFalseOrPredicate(T nullable, Predicate<T> ifNotNull)
T
- object typenullable
- the objectifNotNull
- evaluated if the nullable is not nullpublic static <T> boolean ifNullOr(T nullable, boolean ifNull, Predicate<T> ifNotNull)
T
- object typenullable
- the objectifNull
- returned if the nullable is nullifNotNull
- evaluated if the nullable is not nullCopyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.