com.groupdocs.search.events

Class Event<T extends MulticastDelegate>

  • Type Parameters:
    T - The event handler type.


    public abstract class Event<T extends MulticastDelegate>
    extends Object

    This class is intended to be inherited when subscribing to events.

    • Constructor Detail

      • Event

        public Event()

        Initializes a new instance of the Event class.

    • Method Detail

      • add

        public final void add(T delegate)

        Adds a listener for the event.

        Parameters:
        delegate - A listener for the event to add.
      • remove

        public final void remove(T delegate)

        Removes a listener for the event.

        Parameters:
        delegate - A listener for the event to remove.
      • isEmpty

        public boolean isEmpty()

        Checks for presence of at least one listener.

        Returns:
        A value indicating that at least one listener added for the event.