Package org.patternfly.core
Class ObservableValue<T>
java.lang.Object
org.patternfly.core.ObservableValue<T>
Inspired by FrontendMasters/obervablish-values.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidSets the value of thisObservableValueto the specified value and notifies subscribers regardless of whether the value has changed.get()static <T> ObservableValue<T> ov(T initial) voidpublish()voidSets the value of thisObservableValueand notifies subscribers if the value has changed.voidSets the value of thisObservableValue, but does not notify subscribers.
-
Method Details
-
ov
-
get
-
silent
Sets the value of thisObservableValue, but does not notify subscribers. -
set
Sets the value of thisObservableValueand notifies subscribers if the value has changed. -
change
Sets the value of thisObservableValueto the specified value and notifies subscribers regardless of whether the value has changed. -
subscribe
-
publish
public void publish()
-