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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddListener(EventListener listener) intiterator()Return anIteratorfor theEventListenerinstances.voidremoveListener(EventListener listener) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Constructor Details- 
ListenerListpublic ListenerList()
 
- 
- 
Method Details- 
addListener
- 
getListenerCount
- 
iteratorReturn anIteratorfor theEventListenerinstances.- Specified by:
- iteratorin interface- Iterable<EventListener>
- Returns:
- an Iteratorfor theEventListenerinstances
- Since:
- 2.0 TODO Check that this is a good defensive strategy
 
- 
removeListener
 
-