Observer

public interface Observer<T>(source)

Someone who is interested in getting notified about changes to an Observable

Parameters

<T>

the type of variable in whose state changes we are interested

Inheritors

Functions

Link copied to clipboard
public boolean isValid()
A method to indicate whether an observer is still valid.
Link copied to clipboard
public abstract void observeChange(T oldValue, T newValue)
Called when the state is changed.