Package com.storedobject.common
Interface EBiConsumer<T1,T2,E extends Exception>
- Type Parameters:
T1- the type of the first input argument to the operationT2- the type of the second input argument to the operationE- the type of the exception that may be thrown by the operation
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a two-argument operation that can throw a checked exception.
This is a functional interface and is meant to be used as a lambda expression or method reference.
- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms this operation on the given arguments, possibly throwing a checked exception.static <T1,T2, E extends Exception>
BiConsumer<T1, T2> wrap(EBiConsumer<T1, T2, E> consumer) Wraps anEBiConsumerinto a standardBiConsumer, converting any checked exceptions thrown by theEBiConsumerinto aSORuntimeException.
-
Method Details
-
accept
-
wrap
Wraps anEBiConsumerinto a standardBiConsumer, converting any checked exceptions thrown by theEBiConsumerinto aSORuntimeException.- Type Parameters:
T1- the type of the first input argument to the operationT2- the type of the second input argument to the operationE- the type of the exception that may be thrown by theEBiConsumer- Parameters:
consumer- theEBiConsumerto be wrapped- Returns:
- a
BiConsumerthat delegates to the givenEBiConsumerand wraps thrown checked exceptions asSORuntimeException
-