Interface EventFilter<E extends Event>

All Known Subinterfaces:
EventListener<E>

public interface EventFilter<E extends Event>
Entity capable of filtering events.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    isRelevant(E event)
    Indicates whether the specified event is of interest or not.
  • Method Details

    • isRelevant

      default boolean isRelevant(E event)
      Indicates whether the specified event is of interest or not. Default implementation always returns true.
      Parameters:
      event - event to be inspected
      Returns:
      true if event is relevant; false otherwise