public class PatternListenerDispatch extends Object implements Dispatchable
Constructor and Description |
---|
PatternListenerDispatch(Set<UpdateListener> listeners)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(EventBean theEvent)
Add an event to be dispatched.
|
void |
execute()
Execute dispatch.
|
boolean |
hasData()
Returns true if at least one event has been added.
|
public PatternListenerDispatch(Set<UpdateListener> listeners)
listeners
- is the listeners to dispatch to.public void add(EventBean theEvent)
theEvent
- to addpublic void execute()
Dispatchable
execute
in interface Dispatchable
public boolean hasData()