public class Observers<T> extends Vector<Observer<? super T>>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
Serial version
|
capacityIncrement, elementCount, elementData
modCount
Constructor and Description |
---|
Observers()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addObserver(Observer<? super T> o)
Add an observer to the object.
|
void |
notifyObservers(T owner)
Notify the observers of the changed object.
|
void |
removeObserver(Observer<? super T> o)
Remove an observer from the object.
|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
private static final long serialVersionUID
public void addObserver(Observer<? super T> o)
o
- Observer to addpublic void removeObserver(Observer<? super T> o)
o
- Observer to removepublic void notifyObservers(T owner)
owner
- Owner of the Observers list - changed instance