Interface EventListener<Event>

Type Parameters:
Event - The event type.
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<Event>
A generic listener lambda for use with EventHandler.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    notify​(Event event)
    Send a notification to a listener.
  • Method Details

    • notify

      void notify(Event event)
      Send a notification to a listener.
      Parameters:
      event - The notification being sent.