java.lang.Object
org.commonreality.event.EventDispatcher<L,E>
public class EventDispatcher<L extends ICommonRealityListener,E extends ICommonRealityEvent<L>>
- extends java.lang.Object
- Author:
- developer
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventDispatcher
public EventDispatcher()
hasListeners
public boolean hasListeners()
addListener
public void addListener(L listener,
java.util.concurrent.Executor executor)
removeListener
public void removeListener(L listener)
getListeners
public java.util.Collection<L> getListeners()
fire
public void fire(E event)