public class HashedEventListenerList<T extends java.util.EventListener>
extends java.lang.Object
Constructor and Description |
---|
HashedEventListenerList() |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T listener)
Adds a listener.
|
@NotNull java.lang.Iterable<T> |
getListeners(int index)
Returns an array of all the listeners.
|
void |
remove(int index,
T listener)
Removes a listener.
|
public void add(int index, @NotNull T listener)
index
- the listener's indexlistener
- the listenerpublic void remove(int index, @NotNull T listener)
index
- the listener's indexlistener
- the listener@NotNull public @NotNull java.lang.Iterable<T> getListeners(int index)
index
- the listener's index