@FunctionalInterface
public interface Observer
Modifier and Type | Method and Description |
---|---|
void |
update(Observable observable)
This method is called when the state of the observable instance
changed.
|
void update(Observable observable)
observable
- the observed object that have been updated.