类 InvocationResult.Builder

java.lang.Object
com.github.codeboyzhou.mcp.declarative.reflect.InvocationResult.Builder
封闭类:
InvocationResult

public static final class InvocationResult.Builder extends Object
This class implements the builder pattern for creating a new instance of InvocationResult.
作者:
codeboyzhou
  • 构造器详细资料

    • Builder

      public Builder()
  • 方法详细资料

    • result

      public InvocationResult.Builder result(Object result)
      Sets the result of the invocation.
      参数:
      result - the result of the invocation
      返回:
      the builder instance
    • exception

      public InvocationResult.Builder exception(Exception exception)
      Sets the exception that occurred during the invocation.
      参数:
      exception - the exception that occurred during the invocation
      返回:
      the builder instance
    • build

      public InvocationResult build()
      Builds a new instance of InvocationResult with the configured values.
      返回:
      a new instance of InvocationResult