Class IsEqualTo<T>
- java.lang.Object
-
- org.tensorics.core.math.predicates.IsEqualTo<T>
-
- All Implemented Interfaces:
BinaryFunction<T,java.lang.Boolean>
,BinaryPredicate<T>
public final class IsEqualTo<T> extends java.lang.Object implements BinaryPredicate<T>
-
-
Constructor Summary
Constructors Constructor Description IsEqualTo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
perform
public java.lang.Boolean perform(T left, T right)
Description copied from interface:BinaryFunction
Has to be implemented to perform the actual operation. The order of operands might be important or not, depending, if the operation is commutative or not.- Specified by:
perform
in interfaceBinaryFunction<T,java.lang.Boolean>
- Specified by:
perform
in interfaceBinaryPredicate<T>
- Parameters:
left
- the left operand to be used in the operationright
- the right operand to be used in the operation- Returns:
- the result of the operation
-
test
public boolean test(T left, T right)
Description copied from interface:BinaryPredicate
Evaluates the predicate (condition) on the given arguments.- Specified by:
test
in interfaceBinaryPredicate<T>
- Parameters:
left
- the left operator of the conditionright
- the right operator of the condition- Returns:
true
if the predicate is fulfilled,false
otherwise.
-
isEqualTo
public static final <T> IsEqualTo<T> isEqualTo()
-
-