public class When.NumberConditionBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ObservableNumberValue |
thenValue |
Modifier | Constructor and Description |
---|---|
private |
NumberConditionBuilder(ObservableNumberValue thenValue) |
Modifier and Type | Method and Description |
---|---|
DoubleBinding |
otherwise(double otherwiseValue)
Defines a constant value of the ternary expression, that is returned
if the condition is
false . |
NumberBinding |
otherwise(float otherwiseValue)
Defines a constant value of the ternary expression, that is returned
if the condition is
false . |
NumberBinding |
otherwise(int otherwiseValue)
Defines a constant value of the ternary expression, that is returned
if the condition is
false . |
NumberBinding |
otherwise(long otherwiseValue)
Defines a constant value of the ternary expression, that is returned
if the condition is
false . |
NumberBinding |
otherwise(ObservableNumberValue otherwiseValue)
Defines the
ObservableNumberValue which
value is returned by the ternary expression if the condition is
false . |
private ObservableNumberValue thenValue
private NumberConditionBuilder(ObservableNumberValue thenValue)
public NumberBinding otherwise(ObservableNumberValue otherwiseValue)
ObservableNumberValue
which
value is returned by the ternary expression if the condition is
false
.otherwiseValue
- the valueDoubleBinding
public DoubleBinding otherwise(double otherwiseValue)
false
.otherwiseValue
- the valueDoubleBinding
public NumberBinding otherwise(float otherwiseValue)
false
.otherwiseValue
- the valueNumberBinding
public NumberBinding otherwise(long otherwiseValue)
false
.otherwiseValue
- the valueNumberBinding
public NumberBinding otherwise(int otherwiseValue)
false
.otherwiseValue
- the valueNumberBinding