Package zone.lamprey.function
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.
-
Method Details
-
applyPartial
Performs a partial application, resulting in a function that calls this with its argument and the argument given here.- Specified by:
applyPartialin interfaceTriFunction<T,T,T,T>- Parameters:
t- the first function argumentu- the second function argumentv- the third function argument- Returns:
- the function result
-
applyPartialLM
Performs a partial application, resulting in a function that calls this with its argument and the argument given here.- Specified by:
applyPartialLMin interfaceTriFunction<T,T,T,T>- Parameters:
t- the first function argumentu- the second function argument- Returns:
- the function result
-
applyPartialLR
Performs a partial application, resulting in a function that calls this with its argument and the argument given here.- Specified by:
applyPartialLRin interfaceTriFunction<T,T,T,T>- Parameters:
t- the first function argumentv- the third function argument- Returns:
- the function result
-
applyPartialMR
Performs a partial application, resulting in a function that calls this with its argument and the argument given here.- Specified by:
applyPartialMRin interfaceTriFunction<T,T,T,T>- Parameters:
u- the second function argumentv- the third function argument- Returns:
- the function result
-
applyPartialL
Performs a partial application, resulting in a function that calls this with its argument and the argument given here.- Specified by:
applyPartialLin interfaceTriFunction<T,T,T,T>- Parameters:
t- the first function argument- Returns:
- the function result
-
applyPartialM
Performs a partial application, resulting in a function that calls this with its argument and the argument given here.- Specified by:
applyPartialMin interfaceTriFunction<T,T,T,T>- Parameters:
u- the second function argument- Returns:
- the function result
-
applyPartialR
Performs a partial application, resulting in a function that calls this with its argument and the argument given here.- Specified by:
applyPartialRin interfaceTriFunction<T,T,T,T>- Parameters:
v- the third function argument- Returns:
- the function result
-