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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(EventListener listener) int
iterator()
Return anIterator
for theEventListener
instances.void
removeListener
(EventListener listener) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ListenerList
public ListenerList()
-
-
Method Details
-
addListener
-
getListenerCount
-
iterator
Return anIterator
for theEventListener
instances.- Specified by:
iterator
in interfaceIterable<EventListener>
- Returns:
- an
Iterator
for theEventListener
instances - Since:
- 2.0 TODO Check that this is a good defensive strategy
-
removeListener
-