ListenerList
Date: 2016-06-23

org.apache.commons.net.util

## Class ListenerList

- java.lang.Object
- - org.apache.commons.net.util.ListenerList

- All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<java.util.EventListener>

      public class ListenerList
      extends java.lang.Object
      implements java.io.Serializable, java.lang.Iterable<java.util.EventListener>

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ListenerList()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addListener(java.util.EventListener listener)`
    `int` | `getListenerCount()`
    `java.util.Iterator<java.util.EventListener>` | `iterator()` Return an `Iterator` for the `EventListener` instances.
    `void` | `removeListener(java.util.EventListener listener)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ListenerList

          public ListenerList()

  - ### Method Detail

    - #### addListener

          public void addListener(java.util.EventListener listener)

    - #### removeListener

          public void removeListener(java.util.EventListener listener)

    - #### getListenerCount

          public int getListenerCount()

    - #### iterator

          public java.util.Iterator<java.util.EventListener> iterator()

      Return an `Iterator` for the `EventListener` instances.
      Specified by:
        `iterator` in interface `java.lang.Iterable<java.util.EventListener>`
      Returns:
        an `Iterator` for the `EventListener` instances
      Since:
        2.0 TODO Check that this is a good defensive strategy