Interface TernaryOperator<T>

Type Parameters:
T - the type of the operands and result of the operator
All Superinterfaces:
TriFunction<T,​T,​T,​T>
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>
extends TriFunction<T,​T,​T,​T>
Represents an operation upon three operands of the same type, producing a result of the same type as the operands. This is a specialization of TriFunction for the case where the operands and the result are all of the same type.

This is a functional interface whose functional method is TriFunction.apply(Object, Object, Object).

Since:
1.8
See Also:
BinaryOperator
  • Method Summary

    Modifier and Type Method Description
    default Supplier<T> applyPartial​(T t, T u, T v)
    Performs a partial application, resulting in a function that calls this with its argument and the argument given here.
    default BinaryOperator<T> applyPartialL​(T t)
    Performs a partial application, resulting in a function that calls this with its argument and the argument given here.
    default UnaryOperator<T> applyPartialLM​(T t, T u)
    Performs a partial application, resulting in a function that calls this with its argument and the argument given here.
    default UnaryOperator<T> applyPartialLR​(T t, T v)
    Performs a partial application, resulting in a function that calls this with its argument and the argument given here.
    default BinaryOperator<T> applyPartialM​(T u)
    Performs a partial application, resulting in a function that calls this with its argument and the argument given here.
    default UnaryOperator<T> applyPartialMR​(T u, T v)
    Performs a partial application, resulting in a function that calls this with its argument and the argument given here.
    default BinaryOperator<T> applyPartialR​(T v)
    Performs a partial application, resulting in a function that calls this with its argument and the argument given here.

    Methods inherited from interface zone.lamprey.function.TriFunction

    apply, consume, map
  • Method Details

    • applyPartial

      default Supplier<T> applyPartial​(T t, T u, T v)
      Performs a partial application, resulting in a function that calls this with its argument and the argument given here.
      Specified by:
      applyPartial in interface TriFunction<T,​T,​T,​T>
      Parameters:
      t - the first function argument
      u - the second function argument
      v - the third function argument
      Returns:
      the function result
    • applyPartialLM

      default UnaryOperator<T> applyPartialLM​(T t, T u)
      Performs a partial application, resulting in a function that calls this with its argument and the argument given here.
      Specified by:
      applyPartialLM in interface TriFunction<T,​T,​T,​T>
      Parameters:
      t - the first function argument
      u - the second function argument
      Returns:
      the function result
    • applyPartialLR

      default UnaryOperator<T> applyPartialLR​(T t, T v)
      Performs a partial application, resulting in a function that calls this with its argument and the argument given here.
      Specified by:
      applyPartialLR in interface TriFunction<T,​T,​T,​T>
      Parameters:
      t - the first function argument
      v - the third function argument
      Returns:
      the function result
    • applyPartialMR

      default UnaryOperator<T> applyPartialMR​(T u, T v)
      Performs a partial application, resulting in a function that calls this with its argument and the argument given here.
      Specified by:
      applyPartialMR in interface TriFunction<T,​T,​T,​T>
      Parameters:
      u - the second function argument
      v - the third function argument
      Returns:
      the function result
    • applyPartialL

      default BinaryOperator<T> applyPartialL​(T t)
      Performs a partial application, resulting in a function that calls this with its argument and the argument given here.
      Specified by:
      applyPartialL in interface TriFunction<T,​T,​T,​T>
      Parameters:
      t - the first function argument
      Returns:
      the function result
    • applyPartialM

      default BinaryOperator<T> applyPartialM​(T u)
      Performs a partial application, resulting in a function that calls this with its argument and the argument given here.
      Specified by:
      applyPartialM in interface TriFunction<T,​T,​T,​T>
      Parameters:
      u - the second function argument
      Returns:
      the function result
    • applyPartialR

      default BinaryOperator<T> applyPartialR​(T v)
      Performs a partial application, resulting in a function that calls this with its argument and the argument given here.
      Specified by:
      applyPartialR in interface TriFunction<T,​T,​T,​T>
      Parameters:
      v - the third function argument
      Returns:
      the function result