Observer (Java SE 12 & JDK 12 )
-
@Deprecated(since="9") public interface Observer
A class can implement the
Observerinterface when it wants to be informed of changes in observable objects.- Since:
- 1.0
- See Also:
Observable
-
-
Method Summary
Modifier and Type Method Description voidupdate(Observable o, Object arg)Deprecated.
This method is called whenever the observed object is changed.
-
-
-
Method Detail
-
update
void update(Observable o, Object arg)
Deprecated.
This method is called whenever the observed object is changed. An application calls an
Observableobject'snotifyObserversmethod to have all the object's observers notified of the change.- Parameters:
o- the observable object.arg- an argument passed to thenotifyObserversmethod.
-
-
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2019, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.