Package org.apache.iceberg.common
Class DynMethods.BoundMethod
java.lang.Object
org.apache.iceberg.common.DynMethods.BoundMethod
- Enclosing class:
- DynMethods
A method bound to a receiver, invokable without passing the receiver.
-
Method Summary
Modifier and TypeMethodDescription<R> RInvokes the bound method with the given arguments, wrapping checked exceptions in a RuntimeException.<R> RinvokeChecked(Object... args) Invokes the bound method with the given arguments.
-
Method Details
-
invokeChecked
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
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
-