Interface TripleFunction<T1,T2,T3,R>

Type Parameters:
T1 - the first function argument type
T2 - the second function argument type
T3 - the third function argument type
R - the type of the result of the function
All Superinterfaces:
Serializable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TripleFunction<T1,T2,T3,R> extends Serializable
Represents a function that accepts three arguments and produces a result.
This is a specialization of the Function interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    default <V> TripleFunction<T1,T2,T3,V>
    andThen(Function<? super R,? extends V> after)
    Returns a composed function that first applies this function to its input, and then applies the after function to the result.
    apply(T1 t1, T2 t2, T3 t3)
    Applies this function to the given arguments.
  • Method Details

    • apply

      R apply(T1 t1, T2 t2, T3 t3)
      Applies this function to the given arguments.
      Parameters:
      t1 - the first function argument
      t2 - the second function argument
      t3 - the third function argument
      Returns:
      the function result
    • andThen

      default <V> TripleFunction<T1,T2,T3,V> andThen(Function<? super R,? extends V> after)
      Returns a composed function that first applies this function to its input, and then applies the after function to the result. If evaluation of either function throws an exception, it is relayed to the caller of the composed function.
      Type Parameters:
      V - return type of the after function
      Parameters:
      after - the function to apply after this function is applied
      Returns:
      a function composed of this and after