Interface TernaryOperator<T>

Type Parameters:
T - The type parameter of this function
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 TernaryOperator<T>
A function which takes three parameters of the same type, then returns a value of that same type.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T t1, T t2, T t3)
    Applies this function, then returns the result of the operation.
  • Method Details

    • apply

      T apply(T t1, T t2, T t3)
      Applies this function, then returns the result of the operation.
      Parameters:
      t1 - The first input parameter
      t2 - The second input parameter
      t3 - The third input parameter
      Returns:
      The result of this operation