-
- Type Parameters:
A
- first argument typeB
- second argument typeR
- the return type
- All Superinterfaces:
Functions.Function<A,R>
- All Known Subinterfaces:
Functions.QuadriFunction<A,B,C,D,R>
,Functions.TriFunction<A,B,C,R>
- Enclosing class:
- Functions
- 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 static interface Functions.BiFunction<A,B,R> extends Functions.Function<A,R>
Represents a function that accepts two arguments and produces a result.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default R
apply(A a)
Applies this function to the given argument.R
apply(A a, B b)
Applies this function to the given arguments.
-
-
-
Method Detail
-
apply
default R apply(A a) throws java.lang.Exception
Description copied from interface:Functions.Function
Applies this function to the given argument.- Specified by:
apply
in interfaceFunctions.Function<A,B>
- Parameters:
a
- the input argument- Returns:
- the return value
- Throws:
java.lang.Exception
- if an error happens
-
-