Interface TriFunction<T0,T1,T2,R>

Type Parameters:
T0 - the type of the first argument to the function
T1 - the type of the second argument to the function
T2 - the type of the third argument to the function
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 TriFunction<T0,T1,T2,R> extends Serializable
Represents a three-arity function that accepts three arguments and produces a result.
Since:
Jet 3.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default R
    apply(T0 t0, T1 t1, T2 t2)
    Applies this function to the given arguments.
    applyEx(T0 t0, T1 t1, T2 t2)
    Exception-declaring variant of apply(T0, T1, T2).
  • Method Details

    • applyEx

      R applyEx(T0 t0, T1 t1, T2 t2) throws Exception
      Exception-declaring variant of apply(T0, T1, T2).
      Throws:
      Exception
    • apply

      default R apply(T0 t0, T1 t1, T2 t2)
      Applies this function to the given arguments.
      Parameters:
      t0 - the first argument
      t1 - the second argument
      t2 - the third argument
      Returns:
      the function result