io.sarl.api.util
Interface ListenerNotifier
All Known Implementing Classes:
SequenceListenerNotifier, SmartListenerCollection<T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or action reference.
@java.lang.FunctionalInterface
interface ListenerNotifier
This interface represents an object that is able to provide a notification policy for calling Java event listeners.
Maven Group Identifier:
io.sarl.sdk
Maven Artifact Identifier:
api.util
Since:
0.10
Action Summary
Modifier and type Action and description
abstract void notifyListeners(EventListener,Consumer<T>)
Build a call policy for the given list of listeners and call them.
Action Details
notifyListeners(EventListener,Consumer<T>)
def notifyListeners(EventListener,Consumer<T>)

with L extends java.util.EventListener

Build a call policy for the given list of listeners and call them.
Parameters:
<L> - the type of event listener to support.
listeners - is the list of listeners to call.
action - is the action to apply on each listener.