public interface TernaryOperator
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
apply(java.lang.Object left,
Lazy first,
Lazy second)
Applies the binary operator to the given operands.
|
java.lang.Object apply(java.lang.Object left,
Lazy first,
Lazy second)
throws CarrotException
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).
left - The left operand.first - The Lazy first operand on the right.second - The Lazy second operand on the right.CarrotException - if there's any error applying the operator.