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 StringExpression
asString()
default void
dispose()
Called if thisExpression
will not be used anymore and any references can be removed.default BooleanExpression
isEqualTo
(ObservableValue<V> other) default BooleanExpression
default BooleanExpression
isNotEqualTo
(ObservableValue<V> other) default BooleanExpression
isNotEqualTo
(V other) default BooleanExpression
default BooleanExpression
isNull()
Methods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListener
Methods inherited from interface io.github.mmm.value.observable.ObservableValue
toString
Methods inherited from interface io.github.mmm.value.ReadableValue
get, getSafe
-
Method Details
-
isEqualTo
- Parameters:
other
- theObservableValue
to check.- Returns:
- a new
BooleanBinding
holdingtrue
if thevalue
of thisExpression
and thevalue
of the givenObservableValue
areequal
.
-
isEqualTo
- Parameters:
other
- the constant value to check.- Returns:
- a new
BooleanBinding
holdingtrue
if thevalue
of this property and the givenvalue
areequal
.
-
isNotEqualTo
- Parameters:
other
- theObservableValue
to check.- Returns:
- a new
BooleanBinding
holdingtrue
if thevalue
of this property and thevalue
of the givenObservableValue
are NOTequal
.
-
isNotEqualTo
- Parameters:
other
- the constant value to check.- Returns:
- a new
BooleanBinding
holdingtrue
if thevalue
of this property and the givenvalue
are NOTequal
.
-
isNull
- Returns:
- a new
BooleanBinding
holdingtrue
if thevalue
of this property isnull
.
-
isNotNull
- Returns:
- a new
BooleanBinding
holdingtrue
if thevalue
of this property is NOTnull
.
-
asString
- Returns:
- a new
StringBinding
holding theString-repersentation
of thevalue
.
-
dispose
default void dispose()Called if thisExpression
will not be used anymore and any references can be removed. AnyObservableEventListener
added
to dependentObservableValue
s will beremoved
.
-