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

top.cutexingluo.tools.basepackage.function.TriConsumer Maven / Gradle / Ivy

There is a newer version: 1.1.6
Show newest version
package top.cutexingluo.tools.basepackage.function;

import java.util.Objects;

/**
 * TriConsumer 函数接口
 *
 * @author XingTian
 * @version 1.0.0
 * @date 2024/1/13 12:26
 * @see java.util.function.BiConsumer
 * @since 1.0.4
 */
public interface TriConsumer {
    void accept(T t, U u, V v);

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy