public interface ObservableValue<V> extends Observable
TrackedGettermethod to get the value of the observable. Implementations of this interface will hold
Observers that are added via
addObserver(Observer)as weak references.
|Modifier and Type||Method and Description|
Returns the current value of the observable.
void addObserver(Observer observer)
Observerto the list of observers that are listening to changes from this observable. WARNING: Implementations of this interface are expected to keep a weak reference only to
Observers. Caller of this method must keep a strong reference to the
Observer, otherwise it will automatically be garbage collected, and will not be notified of changes to this
void removeObserver(Observer observer)
Observerfrom the list of observers that are listening to changes from this observable.