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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets 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) void
publish()
void
Sets the value of the ObservableValue and notifies subscribers if the value has changed.void
Sets 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()
-