org.onebusaway.container.model
Class Listeners<T>

java.lang.Object
  extended by 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
Listeners()
           
 
Method Summary
 void addListener(T listener)
           
 Iterator<T> iterator()
           
 void removeListener(T listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Listeners

public Listeners()
Method Detail

addListener

public void addListener(T listener)
Specified by:
addListener in interface HasListeners<T>

removeListener

public void removeListener(T listener)
Specified by:
removeListener in interface HasListeners<T>

iterator

public Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T>


Copyright © 2011 OneBusAway. All Rights Reserved.