public class SynchronousObservable<P> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected CopyOnWriteArrayList<SynchronousObserver<P>> |
list |
| Constructor and Description |
|---|
SynchronousObservable() |
| Modifier and Type | Method and Description |
|---|---|
void |
addObserver(SynchronousObserver<P> observer) |
void |
notifyObservers(P protocol)
do not need a call to setChanged: observers
are immediately notified.
|
void |
removeObserver(SynchronousObserver<P> observer) |
protected CopyOnWriteArrayList<SynchronousObserver<P>> list
public void addObserver(SynchronousObserver<P> observer)
public void removeObserver(SynchronousObserver<P> observer)
public void notifyObservers(P protocol)
protocol - Copyright © 2014 LSST. All Rights Reserved.