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

com.github.phantomthief.util.ThrowableBiConsumer Maven / Gradle / Ivy

There is a newer version: 0.1.55
Show newest version
package com.github.phantomthief.util;

import static java.util.Objects.requireNonNull;

/**
 * @author w.vela
 */
@FunctionalInterface
public interface ThrowableBiConsumer {

    void accept(T t, U u) throws X;

    default ThrowableBiConsumer
            andThen(ThrowableBiConsumer after) {
        requireNonNull(after);
        return (t, u) -> {
            accept(t, u);
            after.accept(t, u);
        };
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy