O- The observer type (event listener) observing the
public interface Observable<O>
Observableinterface can be implemented by any class which can be observed by
Observerinstances (proposal) or any listener interface (custom as of your needs). Whenever something interesting happens to the
Observable, then the listeners are informed according to the
Observable's implementation. Please regard the listener's documentation on the behavior of the actual listener's methods. Extends it with further functionality using the
|Modifier and Type||Method and Description|
Tests whether the given observer (event listener) has been added to this
Adds the given observer (event listener).
Removes the observer (event listener).
boolean hasObserverSubscription(O aObserver)
aObserver- The observer (event listener) for which to test if it has been added.
boolean subscribeObserver(O aObserver)
aObserver- The observer (event listener) which is to be added to the
boolean unsubscribeObserver(O aObserver)
aObserver- The observer (event listener) which is to be removed.
Copyright © 2018. All rights reserved.