T
- The event handler type.public abstract class Event<T extends MulticastDelegate> extends Object
This class is intended to be inherited when subscribing to events.
Modifier and Type | Field and Description |
---|---|
protected ArrayList<T> |
invocationList |
Constructor and Description |
---|
Event()
Initializes a new instance of the
Event class. |
protected final ArrayList<T extends MulticastDelegate> invocationList
public final void add(T delegate)
Adds a listener for the event.
delegate
- A listener for the event to add.public final void remove(T delegate)
Removes a listener for the event.
delegate
- A listener for the event to remove.public boolean isEmpty()
Checks for presence of at least one listener.