public class SmartListenerCollection<T extends EventListener> extends org.arakhne.afc.util.ListenerCollection<T> implements ListenerNotifier
| Constructor and Description |
|---|
SmartListenerCollection(notifier : ListenerNotifier)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<L extends EventListener> |
notifyListeners(type : Class<L>,
action : Consumer<L>)
Build a call policy for the given list of listeners and call them.
|
<L extends EventListener> |
notifyListeners(listeners : L[],
action : Consumer<L>)
Build a call policy for the given list of listeners and call them.
|
@Inject
public new(notifier : ListenerNotifier)
notifier - is the notifier to the listeners that must be used by this collection.publicdefnotifyListeners(listeners : L[], action : Consumer<L>) : voidwith<L extends EventListener>
ListenerNotifiernotifyListeners in interface ListenerNotifierL - the type of event listener to support.listeners - is the list of listeners to call.action - is the action to apply on each listener.publicdefnotifyListeners(type : Class<L>, action : Consumer<L>) : voidwith<L extends EventListener>
SmartListenerCollectionL - the type of event listener to support.type - the type of the listeners to be called.action - is the action to apply on each listener.Copyright © 2021 the original authors or authors.