public abstract class AbstractSubscribers extends java.lang.Object implements Subscribers
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
subscribers |
Constructor and Description |
---|
AbstractSubscribers() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Object subscriber) |
protected abstract void |
notifySubscriber(java.lang.Object subscriber,
java.lang.Object source,
Notification data) |
Notification |
notifySubscribers(java.lang.Object source,
Notification notification) |
Notification |
notifySubscribers(java.lang.Object source,
java.lang.String type,
java.lang.Object value) |
Notification |
notifySubscribers(java.lang.Object source,
java.lang.String type,
java.lang.Object value1,
java.lang.Object value2) |
Notification |
notifySubscribers(java.lang.Object source,
java.lang.String type,
java.lang.Object value1,
java.lang.Object value2,
java.lang.Object value3) |
void |
remove(java.lang.Object subscriber) |
void |
removeAll() |
public void add(java.lang.Object subscriber)
add
in interface Subscribers
public void remove(java.lang.Object subscriber)
remove
in interface Subscribers
public void removeAll()
removeAll
in interface Subscribers
public Notification notifySubscribers(java.lang.Object source, java.lang.String type, java.lang.Object value)
notifySubscribers
in interface Subscribers
public Notification notifySubscribers(java.lang.Object source, java.lang.String type, java.lang.Object value1, java.lang.Object value2)
notifySubscribers
in interface Subscribers
public Notification notifySubscribers(java.lang.Object source, java.lang.String type, java.lang.Object value1, java.lang.Object value2, java.lang.Object value3)
notifySubscribers
in interface Subscribers
public Notification notifySubscribers(java.lang.Object source, Notification notification)
notifySubscribers
in interface Subscribers
protected abstract void notifySubscriber(java.lang.Object subscriber, java.lang.Object source, Notification data)