接口 EventHandler

函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface
public interface EventHandler
Interface for handling events of type T 事件处理器接口
作者:
  • 方法概要

    修饰符和类型 方法 说明
    void handle​(Event event)
    处理函数
  • 方法详细资料

    • handle

      void handle​(Event event)
      处理函数
      参数:
      event - 事件