public class EventListenerGroupImpl<T> extends Object implements EventListenerGroup<T>
| Constructor and Description |
|---|
EventListenerGroupImpl(EventType<T> eventType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDuplicationStrategy(DuplicationStrategy strategy)
Mechanism to more finely control the notion of duplicates.
|
void |
appendListener(T listener) |
void |
appendListeners(T... listeners) |
void |
clear() |
int |
count() |
EventType<T> |
getEventType()
Retrieve the event type associated with this groups of listeners.
|
boolean |
isEmpty()
Are there no listeners registered?
|
Iterable<T> |
listeners() |
void |
prependListener(T listener) |
void |
prependListeners(T... listeners) |
public EventType<T> getEventType()
EventListenerGroupgetEventType in interface EventListenerGroup<T>public boolean isEmpty()
EventListenerGroupisEmpty in interface EventListenerGroup<T>public int count()
count in interface EventListenerGroup<T>public void clear()
clear in interface EventListenerGroup<T>public void addDuplicationStrategy(DuplicationStrategy strategy)
EventListenerGroupaddDuplicationStrategy in interface EventListenerGroup<T>strategy - The duplication strategypublic Iterable<T> listeners()
listeners in interface EventListenerGroup<T>public void appendListeners(T... listeners)
appendListeners in interface EventListenerGroup<T>public void appendListener(T listener)
appendListener in interface EventListenerGroup<T>public void prependListeners(T... listeners)
prependListeners in interface EventListenerGroup<T>public void prependListener(T listener)
prependListener in interface EventListenerGroup<T>Copyright © 2018 JBoss by Red Hat. All rights reserved.