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

com.brambolt.util.function.TriFunction Maven / Gradle / Ivy

There is a newer version: 2022.05.01-7057
Show newest version
package com.brambolt.util.function;

import java.util.function.Function;

/**
 * Represents a function that accepts three arguments and produces a result.
 * This is the three-arity specialization of {@link Function}.
 *
 * 

This is a functional interface * whose functional method is {@link #apply(Object, Object, Object)}. * * @param the type of the first argument to the function * @param the type of the second argument to the function * @param the type of the third argument to the function * @param the type of the result of the function ** * @see java.util.function.BiFunction */ @FunctionalInterface public interface TriFunction { /** * Applies this function to the parameters. * * @param t the first argument * @param u the second argument * @param s the third argument * @return the function result */ R apply(T t, U u, S s); }