public class When.ObjectConditionBuilder<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ObservableObjectValue<T> |
trueResult |
private T |
trueResultValue |
Modifier | Constructor and Description |
---|---|
private |
ObjectConditionBuilder(ObservableObjectValue<T> thenValue) |
private |
ObjectConditionBuilder(T thenValue) |
Modifier and Type | Method and Description |
---|---|
ObjectBinding<T> |
otherwise(ObservableObjectValue<T> otherwiseValue)
Defines the
ObservableObjectValue which
value is returned by the ternary expression if the condition is
false . |
ObjectBinding<T> |
otherwise(T otherwiseValue)
Defines a constant value of the ternary expression, that is returned
if the condition is
false . |
private ObservableObjectValue<T> trueResult
private T trueResultValue
private ObjectConditionBuilder(ObservableObjectValue<T> thenValue)
private ObjectConditionBuilder(T thenValue)
public ObjectBinding<T> otherwise(ObservableObjectValue<T> otherwiseValue)
ObservableObjectValue
which
value is returned by the ternary expression if the condition is
false
.otherwiseValue
- the valueObjectBinding
public ObjectBinding<T> otherwise(T otherwiseValue)
false
.otherwiseValue
- the valueObjectBinding