Interface EventListener<E extends Event<?,?>>

Type Parameters:
E - The type of event to listen to
All Known Implementing Classes:
EventDispatcherContext.EphemeralEventListener
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 EventListener<E extends Event<?,?>>
An event listener handles events when they occur.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(E event)
    Handles an event.
  • Method Details

    • handle

      void handle(E event)
      Handles an event.
      Parameters:
      event - The event to handle