パッケージ net.ririfa.beacon

インタフェース ReturnableHandler<T extends net.ririfa.beacon.ReturnableEvent<R>,R>

型パラメータ:
T - the type of the returnable event to be handled
R - the type of the return value
機能インタフェース
これは機能インタフェースなので、ラムダ式またはメソッド参照の割当てターゲットとして使用できます。

@FunctionalInterface public interface ReturnableHandler<T extends net.ririfa.beacon.ReturnableEvent<R>,R>
Functional interface representing a handler for returnable events of type T.
  • メソッドの概要

    修飾子とタイプ
    メソッド
    説明
    handle(T event)
    Handles the given returnable event and returns a result.
  • メソッドの詳細

    • handle

      R handle(T event)
      Handles the given returnable event and returns a result.
      パラメータ:
      event - the returnable event to be handled
      戻り値:
      the result of handling the event