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