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

org.k3a.utils.TriConsumer Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version

package org.k3a.utils;

import java.util.Objects;

@SuppressWarnings("unused")
@FunctionalInterface
public interface TriConsumer {

    void accept(T t, U u, S s) throws Exception;

    default TriConsumer andThen(TriConsumer after) throws Exception{
        Objects.requireNonNull(after);

        return (l, r, s) -> {
            accept(l, r, s);
            after.accept(l, r, s);
        };
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy