Class DynMethods.BoundMethod

java.lang.Object
org.apache.iceberg.common.DynMethods.BoundMethod
Enclosing class:
DynMethods

public static class DynMethods.BoundMethod extends Object
A method bound to a receiver, invokable without passing the receiver.
  • Method Details

    • invokeChecked

      public <R> R invokeChecked(Object... args) throws Exception
      Invokes the bound method with the given arguments.
      Type Parameters:
      R - the return type of the method
      Parameters:
      args - the arguments to pass to the method
      Returns:
      the result of the invocation
      Throws:
      Exception - if the method throws a checked exception
    • invoke

      public <R> R invoke(Object... args)
      Invokes the bound method with the given arguments, wrapping checked exceptions in a RuntimeException.
      Type Parameters:
      R - the return type of the method
      Parameters:
      args - the arguments to pass to the method
      Returns:
      the result of the invocation