Interface Matcher<A,B>
- Type Parameters:
A- the criteria objectB- the object being tested
- All Superinterfaces:
BiPredicate<A,B>
- All Known Implementing Classes:
AbstractTypeMatcher
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A
BiPredicate with particular semantics associated with its test(Object,
Object) method.- Author:
- Laird Nelson
- See Also:
-
Method Summary
Methods inherited from interface BiPredicate
and, negate, or
-
Method Details
-
test
Returnstrueif and only if the second argument matches the first argument.The order of arguments may therefore be significant for
Matcherimplementations that do not represent equality tests.- Specified by:
testin interfaceBiPredicate<A,B> - Parameters:
a- an object serving as a kind of criteria; must not benullb- an object to test against the criteria; must not benull- Returns:
trueif and only if the second argument matches the first argument;falseotherwise- Throws:
NullPointerException- if eitheraorbisnullIllegalArgumentException- if either non-nullargument is unsuitable for any reason
-