|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.isima.zz3.advjava.tp1.observer.ASubject
public abstract class ASubject
| Constructor Summary | |
|---|---|
ASubject()
|
|
| Method Summary | |
|---|---|
void |
bind(AObserver observer)
Attache un observateur au sujet. |
boolean |
containsAllObservers(java.util.Collection observers)
Returns true if this collection contains all of the elements in the specified collection. |
boolean |
containsObservers(AObserver aObserver)
Returns true if this collection contains the specified element. |
java.util.Collection<AObserver> |
getObservers()
Getter of the property observers_ |
boolean |
isObserversEmpty()
Returns true if this collection contains no elements. |
void |
notifyObservers()
Notification du sujet. |
java.util.Iterator<AObserver> |
observersIterator()
Returns an iterator over the elements in this collection. |
int |
observersSize()
Returns the number of elements in this collection. |
AObserver[] |
observersToArray()
Returns all elements of this collection in an array. |
AObserver[] |
observersToArray(AObserver[] observers_)
Returns an array containing all of the elements in this collection; the runtime type of the returned array is that of the specified array. |
void |
unbind(AObserver observer)
Détache un observateur du sujet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ASubject()
| Method Detail |
|---|
public java.util.Collection<AObserver> getObservers()
public java.util.Iterator<AObserver> observersIterator()
Collection.iterator()public boolean isObserversEmpty()
Collection.isEmpty()public boolean containsObservers(AObserver aObserver)
aObserver - whose presence in this collection is to be tested.Collection.contains(Object)public boolean containsAllObservers(java.util.Collection observers)
observers - collection to be checked for containment in this collection.Collection.containsAll(Collection)public int observersSize()
Collection.size()public AObserver[] observersToArray()
Collection.toArray()public AObserver[] observersToArray(AObserver[] observers_)
observers_ - the array into which the elements of this collection are to be
stored.
Collection.toArray(Object[])public void bind(AObserver observer)
public void unbind(AObserver observer)
public void notifyObservers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||