Interface Observer<T extends Event>

Type Parameters:
T - 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 Observer<T extends Event>
A common interface for all event observers.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    on(T event)
    Invoked when the event occurred.
  • Method Details

    • on

      void on(T event)
      Invoked when the event occurred.
      Parameters:
      event - the details of the event