Interface CallbackReturn<R>

Type Parameters:
R - 执行返回泛型

public interface CallbackReturn<R>
通用执行回调接口
Since:
2022-02-09 19:59
Author:
夜雨
  • Method Summary

    Modifier and Type
    Method
    Description
    static <R> R
    handle(CallbackReturn<R> callbackReturn)
    非空时执行回调
    s 执行程序
  • Method Details

    • handler

      R handler() throws RuntimeException
      s 执行程序
      Returns:
      执行返回
      Throws:
      RuntimeException - 运行时异常
    • handle

      static <R> R handle(CallbackReturn<R> callbackReturn)
      非空时执行回调
      Type Parameters:
      R - 返回类型
      Parameters:
      callbackReturn - 回调