public static class IntPredicate.Util
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static IntPredicate |
and(IntPredicate p1,
IntPredicate p2)
Applies logical AND to predicates.
|
static IntPredicate |
negate(IntPredicate p1)
Applies logical negation to predicate.
|
static IntPredicate |
or(IntPredicate p1,
IntPredicate p2)
Applies logical OR to predicates.
|
static IntPredicate |
xor(IntPredicate p1,
IntPredicate p2)
Applies logical XOR to predicates.
|
public static IntPredicate and(IntPredicate p1, IntPredicate p2)
p1
- the first predicatep2
- the second predicatePredicate
java.lang.NullPointerException
- if p1
or p2
is nullpublic static IntPredicate or(IntPredicate p1, IntPredicate p2)
p1
- the first predicatep2
- the second predicatePredicate
java.lang.NullPointerException
- if p1
or p2
is nullpublic static IntPredicate xor(IntPredicate p1, IntPredicate p2)
p1
- the first predicatep2
- the second predicatePredicate
java.lang.NullPointerException
- if p1
or p2
is nullpublic static IntPredicate negate(IntPredicate p1)
p1
- the predicate to be negatedPredicate
java.lang.NullPointerException
- if p1
is null