Class IndexedEventListenerList<T extends EventListener>

java.lang.Object
com.realtime.crossfire.jxclient.util.IndexedEventListenerList<T>

public class IndexedEventListenerList<T extends EventListener> extends Object
  • Constructor Details

    • IndexedEventListenerList

      public IndexedEventListenerList()
  • Method Details

    • add

      public void add(int index, @NotNull T listener)
      Adds a listener.
      Parameters:
      index - the listener's index
      listener - the listener
    • remove

      public void remove(int index, @NotNull T listener)
      Removes a listener.
      Parameters:
      index - the listener's index
      listener - the listener
    • getListeners

      @NotNull public @NotNull Iterable<T> getListeners(int index)
      Returns all the listeners by index.
      Parameters:
      index - the listener's index
      Returns:
      all the listeners