Interface EventHandler<E>

Type Parameters:
E - the event type this handler processes
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 EventHandler<E>
A handler for a specific event type.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(E event)
    Handle the event.
  • Method Details

    • handle

      void handle(E event)
      Handle the event.
      Parameters:
      event - the event to handle