T - The event handler type.public abstract class Event<T extends EventHandler> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<T> |
invocationList |
| Constructor and Description |
|---|
Event()
Initializes a new instance of the
Event class. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T delegate)
Adds a listener for the event.
|
boolean |
isEmpty()
Checks for presence of at least one listener.
|
void |
remove(T delegate)
Removes a listener for the event.
|
protected final ArrayList<T extends EventHandler> invocationList
public final void add(T delegate)
delegate - A listener for the event to add.public boolean isEmpty()
public final void remove(T delegate)
delegate - A listener for the event to remove.Copyright © 2026. All rights reserved.