Package io.github.mmm.value.observable
Interface ObservableValue<V>
-
- Type Parameters:
V- type of the observablevalue.
- All Superinterfaces:
EventSource<ObservableEvent<V>,ObservableEventListener<? super V>>,ReadableValue<V>,Supplier<V>
- All Known Subinterfaces:
BigDecimalExpression,BigIntegerExpression,BooleanExpression,ByteExpression,ComparableExpression<V>,DoubleExpression,Expression<V>,FloatExpression,InstantExpression,IntegerExpression,LocalDateExpression,LocalDateTimeExpression,LocalTimeExpression,LongExpression,NumberExpression<N>,ObservableBigDecimalValue,ObservableBigIntegerValue,ObservableBooleanValue,ObservableByteValue,ObservableCollectionValue<C,E>,ObservableContainerValue<C,E>,ObservableDoubleValue,ObservableFloatValue,ObservableInstantValue,ObservableIntegerValue,ObservableListValue<E>,ObservableLocalDateTimeValue,ObservableLocalDateValue,ObservableLocalTimeValue,ObservableLongValue,ObservableMapValue<K,V>,ObservableNumberValue<N>,ObservableObjectValue<V>,ObservableOffsetDateTimeValue,ObservableOffsetTimeValue,ObservableSetValue<E>,ObservableShortValue,ObservableSimpleValue<V>,ObservableStringValue,ObservableTemporalValue<V>,ObservableZonedDateTimeValue,OffsetDateTimeExpression,OffsetTimeExpression,ReadableBeanProperty<V>,ReadableBigDecimalProperty,ReadableBigIntegerProperty,ReadableBooleanProperty,ReadableByteProperty,io.github.mmm.property.container.collection.ReadableCollectionProperty<V,E>,ReadableContainerProperty<V,E>,ReadableDoubleProperty,ReadableFloatProperty,ReadableInstantProperty,ReadableIntegerProperty,ReadableListProperty<E>,ReadableLocalDateProperty,ReadableLocalDateTimeProperty,ReadableLocalTimeProperty,ReadableLongProperty,ReadableMapProperty<K,V>,ReadableNumberProperty<N>,ReadableObjectProperty<V>,ReadableOffsetDateTimeProperty,ReadableOffsetTimeProperty,ReadableProperty<V>,ReadableRangeProperty<V>,ReadableSetProperty<E>,ReadableShortProperty,ReadableSimpleProperty<V>,ReadableStringProperty,ReadableZonedDateTimeProperty,ShortExpression,StringExpression,TemporalExpression<V>,WritableBeanProperty<V>,WritableBigDecimalProperty,WritableBigIntegerProperty,WritableBooleanProperty,WritableByteProperty,io.github.mmm.property.container.collection.WritableCollectionProperty<V,E>,WritableContainerProperty<V,E>,WritableDoubleProperty,WritableFloatProperty,WritableInstantProperty,WritableIntegerProperty,WritableListProperty<E>,WritableLocalDateProperty,WritableLocalDateTimeProperty,WritableLocalTimeProperty,WritableLongProperty,WritableMapProperty<K,V>,WritableNumberProperty<N>,WritableObjectProperty<V>,WritableObservableValue<V>,WritableOffsetDateTimeProperty,WritableOffsetTimeProperty,WritableProperty<V>,WritableRangeProperty<V>,WritableSetProperty<E>,WritableShortProperty,WritableSimpleProperty<V>,WritableStringProperty,WritableZonedDateTimeProperty,ZonedDateTimeExpression
- All Known Implementing Classes:
AbstractObservableValue,AbstractWritableObservableValue,BeanProperty,BigDecimalBinding,BigDecimalProperty,BigIntegerBinding,BigIntegerProperty,Binding,BooleanBinding,BooleanProperty,ByteBinding,ByteProperty,io.github.mmm.property.container.collection.CollectionProperty,ContainerProperty,DoubleBinding,DoubleProperty,DurationInSecondsProperty,FloatBinding,FloatProperty,IdProperty,InstantBinding,InstantProperty,IntegerBinding,IntegerProperty,LinkProperty,ListProperty,LocalDateBinding,LocalDateProperty,LocalDateTimeBinding,LocalDateTimeProperty,LocalTimeBinding,LocalTimeProperty,LongBinding,LongProperty,MapProperty,NumberBinding,NumberProperty,ObjectProperty,OffsetDateTimeBinding,OffsetDateTimeBinding,OffsetDateTimeProperty,OffsetTimeProperty,Property,RangeProperty,SetProperty,ShortBinding,ShortProperty,SimpleProperty,StringBinding,StringListProperty,StringProperty,TemporalProperty,ZonedDateTimeBinding,ZonedDateTimeProperty
public interface ObservableValue<V> extends ReadableValue<V>, EventSource<ObservableEvent<V>,ObservableEventListener<? super V>>
AnObservableValuewraps avalueand allows to observe the value for changes. In general this interface should not be implemented directly but one of its sub-interfaces.The value of the
ObservableValuecan be requested withReadableValue.get().An implementation of
ObservableValuemay support lazy evaluation, which means that the value is not immediately recomputed after changes, but lazily the next time the value is requested. All bindings and properties in this library support lazy evaluation.An
ObservableValuegenerates change events. A change event indicates that the value has changed.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidtoString(StringBuilder sb)-
Methods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListener
-
Methods inherited from interface io.github.mmm.value.ReadableValue
get, getSafe
-
-
-
-
Method Detail
-
toString
void toString(StringBuilder sb)
- Parameters:
sb- theStringBuilderwhere to append the details of this property forObject.toString()-Representation.
-
-