T
- the type of the listenerspublic class EventListenerList2<T extends java.util.EventListener>
extends java.lang.Object
implements java.lang.Iterable<T>, java.io.Serializable
Constructor and Description |
---|
EventListenerList2() |
Modifier and Type | Method and Description |
---|---|
void |
add(T listener)
Adds a listener.
|
@NotNull java.util.Iterator<T> |
iterator() |
void |
remove(T listener)
Removes a listener.
|
@NotNull java.lang.String |
toString() |
public void add(@NotNull T listener)
listener
- the listenerpublic void remove(@NotNull T listener)
listener
- the listener@NotNull public @NotNull java.lang.String toString()
toString
in class java.lang.Object