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
,FloatExpression
,InstantExpression
,IntegerExpression
,LocalDateExpression
,LocalDateTimeExpression
,LocalTimeExpression
,LongExpression
,NumberExpression<N>
,OffsetDateTimeExpression
,OffsetTimeExpression
,ReadableBeanProperty<V>
,ReadableBigDecimalProperty
,ReadableBigIntegerProperty
,ReadableBooleanProperty
,ReadableByteProperty
,ReadableDoubleProperty
,ReadableFloatProperty
,ReadableInstantProperty
,ReadableIntegerProperty
,ReadableLocalDateProperty
,ReadableLocalDateTimeProperty
,ReadableLocalTimeProperty
,ReadableLongProperty
,ReadableNumberProperty<N>
,ReadableObjectProperty<V>
,ReadableOffsetDateTimeProperty
,ReadableOffsetTimeProperty
,ReadableShortProperty
,ReadableSimpleProperty<V>
,ReadableStringProperty
,ReadableZonedDateTimeProperty
,ShortExpression
,StringExpression
,TemporalExpression<V>
,WritableBeanProperty<V>
,WritableBigDecimalProperty
,WritableBigIntegerProperty
,WritableBooleanProperty
,WritableByteProperty
,WritableDoubleProperty
,WritableFloatProperty
,WritableInstantProperty
,WritableIntegerProperty
,WritableLocalDateProperty
,WritableLocalDateTimeProperty
,WritableLocalTimeProperty
,WritableLongProperty
,WritableNumberProperty<N>
,WritableObjectProperty<V>
,WritableOffsetDateTimeProperty
,WritableOffsetTimeProperty
,WritableShortProperty
,WritableSimpleProperty<V>
,WritableStringProperty
,WritableZonedDateTimeProperty
,ZonedDateTimeExpression
- All Known Implementing Classes:
BeanProperty
,BigDecimalBinding
,BigDecimalProperty
,BigIntegerBinding
,BigIntegerProperty
,Binding
,BooleanBinding
,BooleanProperty
,ByteBinding
,ByteProperty
,DoubleBinding
,DoubleProperty
,DurationInSecondsProperty
,FloatBinding
,FloatProperty
,IdProperty
,InstantBinding
,InstantProperty
,IntegerBinding
,IntegerProperty
,LinkProperty
,LocalDateBinding
,LocalDateProperty
,LocalDateTimeBinding
,LocalDateTimeProperty
,LocalTimeBinding
,LocalTimeProperty
,LongBinding
,LongProperty
,NumberBinding
,NumberProperty
,ObjectProperty
,OffsetDateTimeBinding
,OffsetDateTimeBinding
,OffsetDateTimeProperty
,OffsetTimeProperty
,RangeProperty
,ShortBinding
,ShortProperty
,SimpleProperty
,StringBinding
,StringListProperty
,StringProperty
,TemporalProperty
,ZonedDateTimeBinding
,ZonedDateTimeProperty
public interface Expression<V> extends ObservableValue<V>
AnExpression
is anObservableValue
providing convenience methods to created dynamically computed values.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default 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
isEqualTo(V other)
default BooleanExpression
isNotEqualTo(ObservableValue<V> other)
default BooleanExpression
isNotEqualTo(V other)
default BooleanExpression
isNotNull()
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 Detail
-
isEqualTo
default BooleanExpression isEqualTo(ObservableValue<V> other)
- Parameters:
other
- theObservableValue
to check.- Returns:
- a new
BooleanBinding
holdingtrue
if thevalue
of thisExpression
and thevalue
of the givenObservableValue
areequal
.
-
isEqualTo
default BooleanExpression isEqualTo(V other)
- Parameters:
other
- the constant value to check.- Returns:
- a new
BooleanBinding
holdingtrue
if thevalue
of this property and the givenvalue
areequal
.
-
isNotEqualTo
default BooleanExpression isNotEqualTo(ObservableValue<V> other)
- Parameters:
other
- theObservableValue
to check.- Returns:
- a new
BooleanBinding
holdingtrue
if thevalue
of this property and thevalue
of the givenObservableValue
are NOTequal
.
-
isNotEqualTo
default BooleanExpression isNotEqualTo(V other)
- Parameters:
other
- the constant value to check.- Returns:
- a new
BooleanBinding
holdingtrue
if thevalue
of this property and the givenvalue
are NOTequal
.
-
isNull
default BooleanExpression isNull()
- Returns:
- a new
BooleanBinding
holdingtrue
if thevalue
of this property isnull
.
-
isNotNull
default BooleanExpression isNotNull()
- Returns:
- a new
BooleanBinding
holdingtrue
if thevalue
of this property is NOTnull
.
-
asString
default StringExpression 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
.
-
-