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>
AnExpressionis anObservableValueproviding 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 StringExpressionasString()default voiddispose()Called if thisExpressionwill not be used anymore and any references can be removed.default BooleanExpressionisEqualTo(ObservableValue<V> other)default BooleanExpressionisEqualTo(V other)default BooleanExpressionisNotEqualTo(ObservableValue<V> other)default BooleanExpressionisNotEqualTo(V other)default BooleanExpressionisNotNull()default BooleanExpressionisNull()-
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- theObservableValueto check.- Returns:
- a new
BooleanBindingholdingtrueif thevalueof thisExpressionand thevalueof the givenObservableValueareequal.
-
isEqualTo
default BooleanExpression isEqualTo(V other)
- Parameters:
other- the constant value to check.- Returns:
- a new
BooleanBindingholdingtrueif thevalueof this property and the givenvalueareequal.
-
isNotEqualTo
default BooleanExpression isNotEqualTo(ObservableValue<V> other)
- Parameters:
other- theObservableValueto check.- Returns:
- a new
BooleanBindingholdingtrueif thevalueof this property and thevalueof the givenObservableValueare NOTequal.
-
isNotEqualTo
default BooleanExpression isNotEqualTo(V other)
- Parameters:
other- the constant value to check.- Returns:
- a new
BooleanBindingholdingtrueif thevalueof this property and the givenvalueare NOTequal.
-
isNull
default BooleanExpression isNull()
- Returns:
- a new
BooleanBindingholdingtrueif thevalueof this property isnull.
-
isNotNull
default BooleanExpression isNotNull()
- Returns:
- a new
BooleanBindingholdingtrueif thevalueof this property is NOTnull.
-
asString
default StringExpression 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.
-
-