
com.github.fridujo.automocker.utils.ThrowingBiConsumer Maven / Gradle / Ivy
The newest version!
package com.github.fridujo.automocker.utils;
import java.util.function.BiConsumer;
@FunctionalInterface
public interface ThrowingBiConsumer {
static BiConsumer silent(ThrowingBiConsumer throwing) {
return (t, u) -> {
try {
throwing.accept(t, u);
} catch (Exception e) {
throw LamdaLuggageException.wrap(e);
}
};
}
void accept(T t, U u) throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy