22 package com.realtime.crossfire.jxclient.util;
24 import java.util.ArrayList;
25 import java.util.EventListener;
26 import java.util.List;
27 import org.jetbrains.annotations.NotNull;
42 public void add(
final int index, @NotNull
final T listener) {
51 public void remove(
final int index, @NotNull
final T listener) {
68 throw new IllegalArgumentException(
"index="+index+
" < 0");
72 return locationListeners.get(index);
73 }
catch (
final IndexOutOfBoundsException ignored) {
74 for (
int i = locationListeners.size(); i <= index; i++) {
77 return locationListeners.get(index);
final List< EventListenerList2< T > > locationListeners
The registered listeners to be notified about changes.
A list of event listeners.
EventListenerList2< T > getLocationListeners(final int index)
Iterable< T > getListeners(final int index)
Returns all the listeners by index.
void add(final int index, @NotNull final T listener)
Adds a listener.