| Constructor and Description |
|---|
Listeners()
Creates list of listeners with default size of 10.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(L listener)
Adds listener to the collection.
|
void |
clear()
Removes all listeners.
|
boolean |
dispatch(Event event)
Dispatched event to all registered listeners.
|
void |
remove(L listener)
Removes listener from the collection.
|
public void add(L listener) throws TooManyListenersException
listener - the listener to be addedTooManyListenersExceptionpublic void remove(L listener)
listener - the listener to be removed.public void clear()
public boolean dispatch(Event event)
event - the event to be dispatchedCopyright © 2018 TeleStax, Inc.. All rights reserved.