Module org.tquadrat.foundation.base
Interface TCEBiFunction<T1,T2,R>
- Type Parameters:
T1
- The type of the first argument to the function.T2
- The type of the second argument to the function.R
- The type of the result of the function.
- All Known Subinterfaces:
TCEBinaryOperator<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
@ClassVersion(sourceVersion="$Id: TCEBiFunction.java 884 2021-03-22 18:02:51Z tquadrat $")
@API(status=STABLE,
since="0.0.5")
public interface TCEBiFunction<T1,T2,R>
The TCE version of the interface
BiFunction
that represents a function that accepts two arguments and produces a
result. This is the two-arity specialisation of
Function
.
Different from the method
BiFunction.apply()
the method
apply(Object,Object)
of this interface declares to throw a
checked exception.
This is a functional interface whose functional method is
apply(Object,Object)
.
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: TCEBiFunction.java 884 2021-03-22 18:02:51Z tquadrat $
- Since:
- 0.0.5
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.function.tce.TCEBiFunction"
-
Method Summary
-
Method Details
-
apply
Applies this function to the given arguments.- Parameters:
arg1
- The first function argument.arg2
- The second function argument.- Returns:
- The function result.
- Throws:
Exception
- Something went wrong.
-