Package org.apache.commons.net.util
Class ListenerList
java.lang.Object
org.apache.commons.net.util.ListenerList
- All Implemented Interfaces:
Serializable,Iterable<EventListener>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(EventListener listener) intiterator()Return anIteratorfor theEventListenerinstances.voidremoveListener(EventListener listener) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ListenerList
public ListenerList()
-
-
Method Details
-
addListener
-
getListenerCount
-
iterator
Return anIteratorfor theEventListenerinstances.- Specified by:
iteratorin interfaceIterable<EventListener>- Returns:
- an
Iteratorfor theEventListenerinstances - Since:
- 2.0 TODO Check that this is a good defensive strategy
-
removeListener
-