Interface ChangeObserver<T>

Type Parameters:
T - the value type
All Superinterfaces:
Observer<Change<T>>, Sensor

public interface ChangeObserver<T> extends Observer<Change<T>>
Observes the changes of an Observable, notified with a Change when the observable notifies a value differing from the one before, by Objects.deepEquals(Object, Object).

previous() and current() observe the values themselves, for a method reference taking the value: observable.changed().current().addConsumer(this::load). On a change, the consumers of this observer are notified first, then those of previous(), then those of current().

See Also: