Package event

Interface EventListener<T extends EventData>

Type Parameters:
T - Type of Data for this listener
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<T extends EventData>
A Simple listener interface
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when the respective event occurs
  • Method Details

    • onEvent

      void onEvent(T t)
      Called when the respective event occurs
      Parameters:
      t - Data for that event