T
- the type of the operandspublic interface BinaryPredicate<T> extends BinaryFunction<T,java.lang.Boolean>
test(Object, Object)
.Modifier and Type | Method and Description |
---|---|
default java.lang.Boolean |
perform(T left,
T right)
Has to be implemented to perform the actual operation.
|
boolean |
test(T left,
T right)
Evaluates the predicate (condition) on the given arguments.
|
boolean test(T left, T right)
left
- the left operator of the conditionright
- the right operator of the conditiontrue
if the predicate is fulfilled, false
otherwise.default java.lang.Boolean perform(T left, T right)
BinaryFunction
perform
in interface BinaryFunction<T,java.lang.Boolean>
left
- the left operand to be used in the operationright
- the right operand to be used in the operation