Interface BiNeighborhoodsPredicate<Solution_,A,B>
- Type Parameters:
Solution_- the type of the solutionA- the type of the first parameterB- the type of the second parameter
- All Superinterfaces:
TriPredicate<SolutionView<Solution_>,A, B>
@NullMarked
public interface BiNeighborhoodsPredicate<Solution_,A,B>
extends TriPredicate<SolutionView<Solution_>,A,B>
A filter that can be applied to a
BiEnumeratingStream to filter out pairs of data,
optionally using SolutionView to query for solution state.-
Method Summary
Modifier and TypeMethodDescriptiondefault BiNeighborhoodsPredicate<Solution_,A, B> and(TriPredicate<? super SolutionView<Solution_>, ? super A, ? super B> other) Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.booleantest(SolutionView<Solution_> solutionView, @Nullable A a, @Nullable B b) Evaluates this predicate on the given arguments.default BiPredicate<A,B> toBiPredicate(SolutionView<Solution_> solutionView) Methods inherited from interface ai.timefold.solver.core.api.function.TriPredicate
negate, or
-
Method Details
-
test
Description copied from interface:TriPredicateEvaluates this predicate on the given arguments.- Specified by:
testin interfaceTriPredicate<Solution_,A, B> - Parameters:
solutionView- the first input argumenta- the second input argumentb- the third input argument- Returns:
trueif the input arguments match the predicate, otherwisefalse
-
and
default BiNeighborhoodsPredicate<Solution_,A, andB> (TriPredicate<? super SolutionView<Solution_>, ? super A, ? super B> other) Description copied from interface:TriPredicateReturns a composed predicate that represents a short-circuiting logical AND of this predicate and another. When evaluating the composed predicate, if this predicate isfalse, then theotherpredicate is not evaluated.Any exceptions thrown during evaluation of either predicate are relayed to the caller; if evaluation of this predicate throws an exception, the
otherpredicate will not be evaluated.- Specified by:
andin interfaceTriPredicate<Solution_,A, B> - Parameters:
other- a predicate that will be logically-ANDed with this predicate- Returns:
- a composed predicate that represents the short-circuiting logical
AND of this predicate and the
otherpredicate
-
toBiPredicate
-