T - the generic type of the observable.O - the generic type of the observerpublic interface Subject<T,O extends Observer<T>>
| Modifier and Type | Method and Description |
|---|---|
void |
addObserver(O observer)
Adds the given observer.
|
void |
addObservers(Collection<O> observers)
Adds the given observers.
|
T |
getObservable()
Gets the observable.
|
void |
removeObserver(O observer)
Removes the given observer.
|
void |
removeObservers(Collection<O> observers)
Removes the given observers.
|
void |
setObservable(T observable)
Sets the observable.
|
void |
updateObservers()
Update observers.
|
void addObserver(O observer)
observer - the observer to be added.void removeObserver(O observer)
observer - the observer to be remove.void addObservers(Collection<O> observers)
observers - the observers to be added.void removeObservers(Collection<O> observers)
observers - the observers to be remove.void updateObservers()
T getObservable()
void setObservable(T observable)
observable - the new observableCopyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.