Package org.apache.dubbo.common.function
Interface ThrowableConsumer<T>
- Type Parameters:
T- the source type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
- Since:
- 2.7.5
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidApplies this function to the given argument.default voidExecutesThrowableConsumerstatic <T> voidexecute(T t, ThrowableConsumer<T> consumer) ExecutesThrowableConsumer
-
Method Details
-
accept
Applies this function to the given argument.- Parameters:
t- the function argument- Throws:
Throwable- if met with any error
-
execute
ExecutesThrowableConsumer- Parameters:
t- the function argument- Throws:
RuntimeException- wrappersThrowable
-
execute
ExecutesThrowableConsumer- Type Parameters:
T- the source type- Parameters:
t- the function argumentconsumer-ThrowableConsumer
-