Interface EventHandler<E>

Type Parameters:
E - the type of event this handler handles
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 an event. This allows listening for events in a more functional style.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(E event)
    Called when the given event is fired from an event bus.
  • Method Details

    • handle

      void handle(E event)
      Called when the given event is fired from an event bus.
      Parameters:
      event - the event to handle