public final class EventMulticaster<T> extends Object
| Constructor and Description |
|---|
EventMulticaster(Class<T> type)
Constructs a multicaster for given listener-interface.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(T listener)
Registers new listener for receiving the events.
|
T |
getMulticaster()
Returns the multicaster.
|
boolean |
isEmpty()
Return if the internal list had listeners.
|
void |
removeListener(T listener)
Removes listener.
|
public void addListener(T listener)
public void removeListener(T listener)
public T getMulticaster()
public boolean isEmpty()
Copyright © 2020. All rights reserved.