org.matheclipse.core.generic.interfaces
Interface BiPredicate<T>
-
- All Known Implementing Classes:
- IntPolynomialQ, IntPolynomialQ, IsBinaryFalse, IsBinaryTrue, IsLEOrdered, PolynomialQ
public interface BiPredicate<T>A BiPredicate can determine a true or false value for any input of its parameterized types.Implementors of BiPredicate which may cause side effects upon evaluation are strongly encouraged to state this fact clearly in their API documentation.
NOTE: This interface could technically extend
BiFunction, since a predicate is just a special case of a function (one that returns a boolean). However, since implementing this would entail changing the signature of theapply(T, T)method to return aBooleaninstead of aboolean, which would in turn allow people to returnnullfrom their BiPredicate, which would in turn enable code that looks like thisif (myPredicate.apply(myObject)) ...to throw aNullPointerException, it was decided not to make this change.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description booleanapply(T t1, T t2)Applies this Predicate to the given objects.
-
DMelt 3.0 © DataMelt by jWork.ORG