Interface MatchPredicate<T>
-
- Type Parameters:
T
- type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface MatchPredicate<T>
An predicate that tests for a match between quantifiers also taking into account an equivalence maps betweenCorrelationIdentifier
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default MatchPredicate<T>
and(MatchPredicate<? super T> other)
Method that combines thisMatchPredicate
and theother
one passed in to produce a newMatchPredicate
that first tests this predicate and if successful then tests the other.default <R> MatchFunction<T,R>
andThen(MatchFunction<? super T,R> after)
Method that combines thisMatchPredicate
and theMatchFunction
after
passed in to produce a newMatchFunction
that first tests this predicate and if successful then appliesafter
.boolean
test(T element, T otherElement, AliasMap aliasMap)
Test for a match.
-
-
-
Method Detail
-
test
boolean test(@Nonnull T element, @Nonnull T otherElement, @Nonnull AliasMap aliasMap)
Test for a match.- Parameters:
element
- element on this sideotherElement
- element on the other sidealiasMap
- bindings that already have been established- Returns:
true
for a successful match attempt;false
otherwise
-
and
default MatchPredicate<T> and(MatchPredicate<? super T> other)
Method that combines thisMatchPredicate
and theother
one passed in to produce a newMatchPredicate
that first tests this predicate and if successful then tests the other.- Parameters:
other
- otherMatchPredicate
- Returns:
- a new
MatchPredicate
-
andThen
default <R> MatchFunction<T,R> andThen(MatchFunction<? super T,R> after)
Method that combines thisMatchPredicate
and theMatchFunction
after
passed in to produce a newMatchFunction
that first tests this predicate and if successful then appliesafter
.- Type Parameters:
R
- type thatafter
produces- Parameters:
after
-MatchFunction
- Returns:
- a new
MatchFunction
-
-