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()
EventListenerGroup
getEventType
in interface EventListenerGroup<T>
public boolean isEmpty()
EventListenerGroup
isEmpty
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)
EventListenerGroup
addDuplicationStrategy
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 © 2012 JBoss by Red Hat. All Rights Reserved.