O
- The type of the expression.public class ConditionalExpression<O> extends TrinaryExpression<java.lang.Boolean,O,O,O>
Expression
whose primary dependency is conditional on a
Boolean
Expression
dependency. The primary dependency, in
this instance, provides the value of this Expression
directly.Constructor and Description |
---|
ConditionalExpression(Expression<? extends java.lang.Boolean> condition,
Expression<? extends O> expressionWhenFulfilled,
Expression<? extends O> expressionWhenUnfulfilled) |
Modifier and Type | Method and Description |
---|---|
Expression<? extends java.lang.Boolean> |
getCondition() |
Expression<? extends O> |
getExpressionWhenFulfilled() |
Expression<? extends O> |
getExpressionWhenUnfulfilled() |
evaluate, getFirstOperand, getOperation, getSecondOperand, getThirdOperand
getValue, invalidations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
anonymize, decoupleValue, immutable, over, over
public ConditionalExpression(Expression<? extends java.lang.Boolean> condition, Expression<? extends O> expressionWhenFulfilled, Expression<? extends O> expressionWhenUnfulfilled)
condition
- The condition to switch between primary dependencies.expressionWhenFulfilled
- The Expression
to set as primary dependency when the given
condition is fulfilled.expressionWhenUnfulfilled
- The Expression
to set as primary dependency when the given
condition is unfulfilled.public final Expression<? extends java.lang.Boolean> getCondition()
public final Expression<? extends O> getExpressionWhenFulfilled()
Expression
which behaves as primary dependency when the
given condition is fulfilled.public final Expression<? extends O> getExpressionWhenUnfulfilled()
Expression
which behaves as primary dependency when the
given condition is unfulfilled.