public final class LambdaTools
extends java.lang.Object
Constructor and Description |
---|
LambdaTools() |
Modifier and Type | Method and Description |
---|---|
static <T> java.util.function.Predicate<T> |
and(java.util.function.Predicate<T> p1,
java.util.function.Predicate<T> p2)
Convenience combinator for multiple predicates for use in Netrexx.
|
static <T> java.util.function.Predicate<T> |
isNull(java.lang.Class<T> clazz)
Convenience Predicate for use in Netrexx, because 'Objects::isNull' by itself is not a predicate.
|
static <T> java.util.function.Predicate<T> |
nonNull(java.lang.Class<T> clazz)
Convenience Predicate for use in Netrexx, because 'Objects::nonNull' by itself is not a predicate.
|
static <T> java.util.function.Predicate<T> |
not(java.util.function.Predicate<? super T> target)
Returns a predicate that is the negation of the
supplied predicate.
|
static <T> java.util.function.Predicate<T> |
or(java.util.function.Predicate<T> p1,
java.util.function.Predicate<T> p2)
Convenience combinator for multiple predicates for use in Netrexx.
|
public static final <T> java.util.function.Predicate<T> not(java.util.function.Predicate<? super T> target)
T
- the type of arguments to the
specified predicatetarget
- predicate to negatepublic static final <T> java.util.function.Predicate<T> nonNull(java.lang.Class<T> clazz)
public static final <T> java.util.function.Predicate<T> isNull(java.lang.Class<T> clazz)
public static final <T> java.util.function.Predicate<T> and(java.util.function.Predicate<T> p1, java.util.function.Predicate<T> p2)
public static final <T> java.util.function.Predicate<T> or(java.util.function.Predicate<T> p1, java.util.function.Predicate<T> p2)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.