Accepts this key and value as arguments to the given consumer. @param The kind of thrown exception or error. @param consumer the consumer to call. @throws E Thrown when the consumer fails. @since 3.13.0
(final FailableBiConsumer<L, R, E> consumer)
| 124 | * @since 3.13.0 |
| 125 | */ |
| 126 | public <E extends Throwable> void accept(final FailableBiConsumer<L, R, E> consumer) throws E { |
| 127 | consumer.accept(getKey(), getValue()); |
| 128 | } |
| 129 | |
| 130 | /** |
| 131 | * Applies this key and value as arguments to the given function. |