Interface EventPredicate

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface EventPredicate
Functional interface to filter for certain events and entities, when registering Handler instances on Service instances.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final EventPredicate
    EventPredicate, which always evaluates to true
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    test(String event, String entity)
    Returns true, if a given event and entity should be handled by the Handler registered with this EventPredicate
  • Field Details

  • Method Details

    • test

      boolean test(String event, String entity)
      Returns true, if a given event and entity should be handled by the Handler registered with this EventPredicate
      Parameters:
      event - the event
      entity - the entity
      Returns:
      true, if the given event and entity should be handled, false otherwise