public class IndexedEventListenerList<T extends java.util.EventListener>
extends java.lang.Object
Constructor and Description |
---|
IndexedEventListenerList() |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T listener)
Adds a listener.
|
@NotNull java.lang.Iterable<T> |
getListeners(int index)
Returns all the listeners by index.
|
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