Consumes a consumer and rethrows any exception as a RuntimeException. @param consumer the consumer to consume @param object1 the first object to consume by consumer @param object2 the second object to consume by consumer @param the type of the first argument the consume
(final FailableBiConsumer<O1, O2, T> consumer,
final O1 object1, final O2 object2)
| 294 | * @param <T> The type of checked exception the consumer may throw |
| 295 | */ |
| 296 | public static <O1, O2, T extends Throwable> void accept(final FailableBiConsumer<O1, O2, T> consumer, |
| 297 | final O1 object1, final O2 object2) { |
| 298 | run(() -> consumer.accept(object1, object2)); |
| 299 | } |
| 300 | |
| 301 | /** |
| 302 | * Consumes a consumer and rethrows any exception as a {@link RuntimeException}. |