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

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

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

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

/**
 * TriFunction 函数接口
 *
 * @author XingTian
 * @version 1.0.0
 * @date 2024/1/13 12:21
 * @see java.util.function.BiFunction
 * @since 1.0.4
 */
@FunctionalInterface
public interface TriFunction {
    R apply(T t, U u, V v);

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy