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

cc.neckbeard.utils.functional.TriConsumer Maven / Gradle / Ivy

The newest version!
package cc.neckbeard.utils.functional;

import java.util.Objects;

@FunctionalInterface
public interface TriConsumer {
    void accept(T t, U u, V v);

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy