public class EventDispatcher<L extends ICommonRealityListener,E extends ICommonRealityEvent<L>>
extends java.lang.Object
Constructor and Description |
---|
EventDispatcher() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(L listener,
java.util.concurrent.Executor executor) |
void |
fire(E event) |
protected java.util.Collection<org.commonreality.event.EventDispatcher.Pair> |
getCachedListeners() |
java.util.Collection<L> |
getListeners() |
boolean |
hasListeners() |
void |
removeListener(L listener) |
public boolean hasListeners()
public void addListener(L listener, java.util.concurrent.Executor executor)
public void removeListener(L listener)
public java.util.Collection<L> getListeners()
protected java.util.Collection<org.commonreality.event.EventDispatcher.Pair> getCachedListeners()
public void fire(E event)