AbstractNotifier
Abstract implementation of Notifier that also implements Listenable.
This class provides a complete implementation of the observer pattern, combining both the ability to register/unregister listeners (from Listenable) and the ability to notify them of events (from Notifier).
The implementation maintains a set of listeners and ensures safe event delivery even if individual listeners throw exceptions.
Parameters
E
The type of event this notifier handles
Inheritors
Functions
Link copied to clipboard
Registers a listener to receive events.
Link copied to clipboard
Converts this Listenable into a Flow that emits events.
Link copied to clipboard
Checks if there are any registered listeners.
Link copied to clipboard
Unregisters a listener from receiving events.