Interface INotifier

    • Method Detail

      • addListener

        void addListener​(IListener listener)
        Adds a listener to this notifier.

        Depending on the implementation duplicate listeners may lead to duplicate event delivery or not. Implementors are encouraged to prevent events from being delivered more than once to the same listener,

      • removeListener

        void removeListener​(IListener listener)
        Removes a listener from this notifier.
      • hasListeners

        boolean hasListeners()
        Returns true if one or more listeners are registered with this notifier, false otherwise.
        Since:
        3.0
      • getListeners

        IListener[] getListeners()
        Returns the listeners that are registered with this notifier.

        Depending on the implementation duplicate listeners may be contained in the returned array.

        Since:
        3.0