O1
- The type of the first operand.O2
- The type of the second operand.R
- The type of the result.public abstract class BinaryExpression<O1,O2,R> extends PassiveExpression<R>
UnaryExpression
, but with two operands.Constructor and Description |
---|
BinaryExpression(Expression<? extends O1> firstOperand,
Expression<? extends O2> secondOperand,
java.util.function.BiFunction<? super O1,? super O2,? extends R> operation) |
Modifier and Type | Method and Description |
---|---|
protected R |
evaluate() |
Expression<? extends O1> |
getFirstOperand() |
Expression<? extends O2> |
getSecondOperand() |
getValue, invalidations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
anonymize, decoupleValue, immutable, over, over
public BinaryExpression(Expression<? extends O1> firstOperand, Expression<? extends O2> secondOperand, java.util.function.BiFunction<? super O1,? super O2,? extends R> operation)
firstOperand
- An expression providing the first operand for the function.secondOperand
- An expression providing the second operand for the function.operation
- A function transforming the operands into a value of this
expression's type.public Expression<? extends O1> getFirstOperand()
public Expression<? extends O2> getSecondOperand()
protected R evaluate()
evaluate
in class PassiveExpression<R>
Expression
as derived from the dependency
Expression
s.