com.brambolt.util.function.TriFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of brambolt-rt Show documentation
Show all versions of brambolt-rt Show documentation
Small utilities and convenience wrappers.
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);
}