Interface EventFilter

    • Method Detail

      • apply

        boolean apply​(Event event)
        Apply the filter on an event.

        This method is called for each subscribed Event of an EventSubscriber. If the filter applies, the event will be dispatched to the EventSubscriber.receive(Event) method.

        Parameters:
        event - the event (not null)
        Returns:
        true if the filter criterion applies