- All Known Implementing Classes:
public interface Watcher<T>A class can implement the
Watcherinterface when it wants to be informed of one-time changes in watchable objects.
void update(T value)This method is called whenever the watched object is changed. An application calls an Watchable object's
notifyWatchersmethod to have all the object's watchers notified of the change.
value- the updated value of a watchable