net.christopherschultz.evaluator.function
Class BinaryOperator.NotEqual
java.lang.Object
net.christopherschultz.evaluator.StandardFunction
net.christopherschultz.evaluator.function.MathFunction
net.christopherschultz.evaluator.function.BinaryOperator
net.christopherschultz.evaluator.function.BinaryOperator.Equal
net.christopherschultz.evaluator.function.BinaryOperator.NotEqual
- All Implemented Interfaces:
- Function
- Enclosing class:
- BinaryOperator
public static class BinaryOperator.NotEqual
- extends BinaryOperator.Equal
Implements unequal.
This class respects the value of the EvaluationContext property
MathFunction.ALLOW_NULL_COMPARISON
.
Nested classes/interfaces inherited from class net.christopherschultz.evaluator.function.BinaryOperator |
BinaryOperator.Add, BinaryOperator.And, BinaryOperator.Divide, BinaryOperator.Equal, BinaryOperator.Greater, BinaryOperator.GreaterEqual, BinaryOperator.IncompatibleArgumentsException, BinaryOperator.Less, BinaryOperator.LessEqual, BinaryOperator.Modulus, BinaryOperator.Multiply, BinaryOperator.NotEqual, BinaryOperator.Or, BinaryOperator.Subtract |
Nested classes/interfaces inherited from class net.christopherschultz.evaluator.function.MathFunction |
MathFunction.abs, MathFunction.acos, MathFunction.asin, MathFunction.atan, MathFunction.ceil, MathFunction.cos, MathFunction.DoubleFunction, MathFunction.exp, MathFunction.floor, MathFunction.heaviside, MathFunction.log, MathFunction.max, MathFunction.min, MathFunction.pow, MathFunction.random, MathFunction.rint, MathFunction.sin, MathFunction.sqrt, MathFunction.tan, MathFunction.toDegrees, MathFunction.toRadians |
BinaryOperator.NotEqual
public BinaryOperator.NotEqual()
call
public Object call(EvaluationContext ec,
String functionName,
Object[] args)
throws EvaluationException
- Description copied from class:
BinaryOperator
- Checks for exactly two arguments and calls the
subclass's 2-argument call function.
- Overrides:
call
in class BinaryOperator
- Parameters:
ec
- The EvaluationContext in which this function is being called.functionName
- The name of the function being invoked.args
- The argument values to pass to this function.
- Returns:
- The result of the function.
- Throws:
EvaluationException
- If there is an error during function
execution.