public class When.BooleanConditionBuilder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private ObservableBooleanValue |
trueResult |
private boolean |
trueResultValue |
| Modifier | Constructor and Description |
|---|---|
private |
BooleanConditionBuilder(boolean thenValue) |
private |
BooleanConditionBuilder(ObservableBooleanValue thenValue) |
| Modifier and Type | Method and Description |
|---|---|
BooleanBinding |
otherwise(boolean otherwiseValue)
Defines a constant value of the ternary expression, that is returned
if the condition is
false. |
BooleanBinding |
otherwise(ObservableBooleanValue otherwiseValue)
Defines the
ObservableBooleanValue which
value is returned by the ternary expression if the condition is
false. |
private ObservableBooleanValue trueResult
private boolean trueResultValue
private BooleanConditionBuilder(ObservableBooleanValue thenValue)
private BooleanConditionBuilder(boolean thenValue)
public BooleanBinding otherwise(ObservableBooleanValue otherwiseValue)
ObservableBooleanValue which
value is returned by the ternary expression if the condition is
false.otherwiseValue - the valueBooleanBindingpublic BooleanBinding otherwise(boolean otherwiseValue)
false.otherwiseValue - the valueBooleanBinding