BaseObservable

public abstract class BaseObservable<T> implements Observable<T>(source)

Base class for an Observable which takes care of the observer saving

Inheritors

Constructors

Link copied to clipboard
public void BaseObservable()

Functions

Link copied to clipboard
public void addObserver(Observer<T> observer)
Add a new observer which is interested in updates about this value
Link copied to clipboard
public abstract T get()
Link copied to clipboard
public Observable<V> map<V>(Function<T, V> mapper)
Create a new Observable which will always have the value of mapper.apply(get()) and reports on updates accordingly.
Link copied to clipboard
public void whenChanged(Observer<T> observer)
Alias for addObserver.