Package io.github.mmm.value.observable
Interface Expression<V>
- Type Parameters:
V- type of thevalue.
- All Superinterfaces:
EventSource<ObservableEvent<V>,,ObservableEventListener<? super V>> ObservableValue<V>,ReadableValue<V>,Supplier<V>
- All Known Subinterfaces:
BigDecimalExpression,BigIntegerExpression,BooleanExpression,ByteExpression,ComparableExpression<V>,DoubleExpression,DurationExpression,FloatExpression,InstantExpression,IntegerExpression,LocalDateExpression,LocalDateTimeExpression,LocalTimeExpression,LongExpression,NumberExpression<N>,OffsetDateTimeExpression,OffsetTimeExpression,PatternExpression,ShortExpression,StringExpression,TemporalAmountExpression<V>,TemporalExpression<V>,ZonedDateTimeExpression
- All Known Implementing Classes:
BigDecimalBinding,BigIntegerBinding,Binding,BooleanBinding,ByteBinding,DoubleBinding,DurationBinding,FloatBinding,InstantBinding,IntegerBinding,LocalDateBinding,LocalDateTimeBinding,LocalTimeBinding,LongBinding,NumberBinding,OffsetDateTimeBinding,OffsetDateTimeBinding,PatternBinding,ShortBinding,StringBinding,ZonedDateTimeBinding
An
Expression is an ObservableValue providing convenience methods to created dynamically computed
values.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringExpressionasString()default voiddispose()Called if thisExpressionwill not be used anymore and any references can be removed.default BooleanExpressionisEqualTo(ObservableValue<V> other) default BooleanExpressiondefault BooleanExpressionisNotEqualTo(ObservableValue<V> other) default BooleanExpressionisNotEqualTo(V other) default BooleanExpressiondefault BooleanExpressionisNull()Methods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListenerMethods inherited from interface io.github.mmm.value.observable.ObservableValue
toStringMethods inherited from interface io.github.mmm.value.ReadableValue
get, getFallbackSafeValue, getSafe, getValueClass
-
Method Details
-
isEqualTo
- Parameters:
other- theObservableValueto check.- Returns:
- a new
BooleanBindingholdingtrueif thevalueof thisExpressionand thevalueof the givenObservableValueareequal.
-
isEqualTo
- Parameters:
other- the constant value to check.- Returns:
- a new
BooleanBindingholdingtrueif thevalueof this property and the givenvalueareequal.
-
isNotEqualTo
- Parameters:
other- theObservableValueto check.- Returns:
- a new
BooleanBindingholdingtrueif thevalueof this property and thevalueof the givenObservableValueare NOTequal.
-
isNotEqualTo
- Parameters:
other- the constant value to check.- Returns:
- a new
BooleanBindingholdingtrueif thevalueof this property and the givenvalueare NOTequal.
-
isNull
- Returns:
- a new
BooleanBindingholdingtrueif thevalueof this property isnull.
-
isNotNull
- Returns:
- a new
BooleanBindingholdingtrueif thevalueof this property is NOTnull.
-
asString
- Returns:
- a new
StringBindingholding theString-repersentationof thevalue.
-
dispose
default void dispose()Called if thisExpressionwill not be used anymore and any references can be removed. AnyObservableEventListeneraddedto dependentObservableValues will beremoved.
-