public interface Observer
Observable
Modifier and Type | Method and Description |
---|---|
void |
update(Observable observable,
Object arg)
This method is called whenever the observable object changes, and has
called
notifyObservers . |
void update(Observable observable, Object arg)
notifyObservers
. The Observable object can pass
arbitrary information in the second parameter.observable
- the Observable object that changedarg
- arbitrary information, usually relating to the change