Interface BooleanExpression
-
- All Superinterfaces:
EventSource<ObservableEvent<Boolean>,ObservableEventListener<? super Boolean>>,Expression<Boolean>,ObservableBooleanValue,ObservableSimpleValue<Boolean>,ObservableValue<Boolean>,ReadableBooleanValue,ReadableSimpleValue<Boolean>,ReadableTypedValue<Boolean>,ReadableValue<Boolean>,Supplier<Boolean>
- All Known Subinterfaces:
ReadableBooleanProperty,WritableBooleanProperty
- All Known Implementing Classes:
BooleanBinding,BooleanProperty
public interface BooleanExpression extends ObservableBooleanValue, Expression<Boolean>
- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default BooleanExpressionand(ObservableValue<Boolean> other)default BooleanExpressionand(Boolean constant)default BooleanExpressionnot()default BooleanExpressionor(ObservableValue<Boolean> other)default BooleanExpressionor(Boolean constant)-
Methods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListener
-
Methods inherited from interface io.github.mmm.value.observable.Expression
asString, dispose, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNull
-
Methods inherited from interface io.github.mmm.value.observable.ObservableValue
toString
-
Methods inherited from interface io.github.mmm.value.observable.booleans.ReadableBooleanValue
getSafe, getValue, getValueClass
-
Methods inherited from interface io.github.mmm.value.observable.object.ReadableSimpleValue
getAsString
-
Methods inherited from interface io.github.mmm.value.ReadableValue
get
-
-
-
-
Method Detail
-
not
default BooleanExpression not()
- Returns:
- a new
BooleanExpressionholding the negation of thisvalue.
-
and
default BooleanExpression and(ObservableValue<Boolean> other)
- Parameters:
other- the otherObservableValue.- Returns:
- the new
BooleanExpressionholding the logical AND of thevalues from thisBooleanExpressionand the givenObservableValue.
-
and
default BooleanExpression and(Boolean constant)
-
or
default BooleanExpression or(ObservableValue<Boolean> other)
- Parameters:
other- the otherObservableValue.- Returns:
- the new
BooleanExpressionholding the logical OR of thisvalueand the givenothers value.
-
or
default BooleanExpression or(Boolean constant)
- Parameters:
constant- the constantBooleanvalue.- Returns:
- the new
BooleanExpressionholding the logical OR of thevalues from thisBooleanExpressionand the givenconstantvalue.
-
-