public final class SubOperator extends java.lang.Object implements BinaryOperator
a - b
.Constructor and Description |
---|
SubOperator() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
apply(java.lang.Object left,
Lazy right)
Applies the binary operator to the given operands.
|
java.lang.String |
toString() |
public java.lang.Object apply(java.lang.Object left, Lazy right) throws CarrotException
BinaryOperator
Note that the right operand is passed as a Lazy
because some operands may not need
to evaluate it, depending on the left operand (e.g. boolean `and` and `or` operators).
apply
in interface BinaryOperator
left
- The left operand.right
- The Lazy
right operand.CarrotException
- if there's any error applying the operator.public java.lang.String toString()
toString
in class java.lang.Object