Package org.patternfly.core
Class ObservableValue<T>
java.lang.Object
org.patternfly.core.ObservableValue<T>
Inspired by FrontendMasters/obervablish-values.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidSets the value of the ObservableValue to 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 the ObservableValue and notifies subscribers if the value has changed.voidSets the value of the ObservableValue, but does not notify subscribers.
-
Method Details
-
ov
-
get
-
silent
Sets the value of the ObservableValue, but does not notify subscribers. -
set
Sets the value of the ObservableValue and notifies subscribers if the value has changed. -
change
Sets the value of the ObservableValue to the specified value and notifies subscribers regardless of whether the value has changed. -
subscribe
-
publish
public void publish()
-