Applies a function and rethrows any exception as a RuntimeException. @param function the function to apply @param input1 the first input to apply function on @param input2 the second input to apply function on @param the type of the first argument the function accepts @
(final FailableBiFunction<O1, O2, O, T> function,
final O1 input1, final O2 input2)
| 323 | * @return the value returned from the function |
| 324 | */ |
| 325 | public static <O1, O2, O, T extends Throwable> O apply(final FailableBiFunction<O1, O2, O, T> function, |
| 326 | final O1 input1, final O2 input2) { |
| 327 | return get(() -> function.apply(input1, input2)); |
| 328 | } |
| 329 | |
| 330 | /** |
| 331 | * Applies a function and rethrows any exception as a {@link RuntimeException}. |