Package org.onebusaway.container.model
Class Listeners<T>
- java.lang.Object
-
- org.onebusaway.container.model.Listeners<T>
-
- All Implemented Interfaces:
Iterable<T>,HasListeners<T>
public class Listeners<T> extends Object implements Iterable<T>, HasListeners<T>
Convenience container for a collection of typed listener objects- Author:
- bdferris
- See Also:
HasListeners
-
-
Constructor Summary
Constructors Constructor Description Listeners()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(T listener)Iterator<T>iterator()voidremoveListener(T 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
-
-
-
-
Method Detail
-
addListener
public void addListener(T listener)
- Specified by:
addListenerin interfaceHasListeners<T>
-
removeListener
public void removeListener(T listener)
- Specified by:
removeListenerin interfaceHasListeners<T>
-
-