Interface Observable

    • Method Detail

      • addObserver

        java.io.Closeable addObserver​(Observer observer)
        Register a new Observer. Clients need to call Closeable.close() to stop getting notifications on the registered observer and to free up any resources associated with the registration.
        Returns:
        a Closeable instance.