com.kirekov.sneaky.lambda.CheckedBiConsumer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sneaky-java Show documentation
Show all versions of sneaky-java Show documentation
Java utilities to throw checked exceptions in a "sneaky" way
package com.kirekov.sneaky.lambda;
import java.util.function.BiConsumer;
/**
* BiConsumer that may throw {@linkplain Exception}.
*
* @param the first input argument
* @param the second input argument
* @see BiConsumer
*/
public interface CheckedBiConsumer {
/**
* Performs the operation on the given arguments.
*
* @param t the first input argument
* @param u the second input argument
* @throws Exception if any error occurs
*/
void accept(T t, U u) throws Exception;
}