Interface Predicate<T>
- Type Parameters:
T- the input type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A test of one value.
-
Method Summary
Modifier and TypeMethodDescriptionPasses when this andotherboth pass;otheris not asked when this fails.static <T> Predicate<T> negate()Passes when this fails.static <T> Predicate<T> The negation oftarget.Passes when this orotherpasses;otheris not asked when this passes.booleanWhethertpasses.
-
Method Details
-
test
-
and
-
negate
-
or
-
isEqual
- Type Parameters:
T- the input type- Parameters:
targetRef- the value to compare with- Returns:
- the test
-
not
-