All Downloads are FREE. Search and download functionalities are using the official Maven repository.

co.pragmati.function.throwing.ThrowingBiFunction Maven / Gradle / Ivy

package co.pragmati.function.throwing;

import java.util.Objects;
import java.util.function.Function;

/**
 * BiFunction that throws exceptions
 * @param 
 * @param 
 * @param 
 * @param 
 *
 * @author jmbataller
 */
@FunctionalInterface
public interface ThrowingBiFunction {

    R apply(T t, U u) throws E;

    default  ThrowingBiFunction andThen(Function after) {
        Objects.requireNonNull(after);
        return (T t, U u) -> after.apply(apply(t, u));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy