public final class IsEqualTo<T> extends java.lang.Object implements BinaryPredicate<T>
Constructor and Description |
---|
IsEqualTo() |
Modifier and Type | Method and Description |
---|---|
static <T> IsEqualTo<T> |
isEqualTo() |
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.
|
public java.lang.Boolean perform(T left, T right)
BinaryFunction
perform
in interface BinaryFunction<T,java.lang.Boolean>
perform
in interface BinaryPredicate<T>
left
- the left operand to be used in the operationright
- the right operand to be used in the operationpublic boolean test(T left, T right)
BinaryPredicate
test
in interface BinaryPredicate<T>
left
- the left operator of the conditionright
- the right operator of the conditiontrue
if the predicate is fulfilled, false
otherwise.public static final <T> IsEqualTo<T> isEqualTo()