- Type Parameters:
V1
- Input type.V2
- Input type.R
- Output type.
- All Superinterfaces:
BiFunction<V1,
V2, R>
- Enclosing class:
- SneakyThrows
- 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 SneakyThrows.Function2<V1,V2,R>
extends BiFunction<V1,V2,R>
Throwable version of
BiFunction
.
The apply(Object, Object)
method throws checked exceptions using SneakyThrows.propagate(Throwable)
method.
-
Method Summary
Methods inherited from interface java.util.function.BiFunction
andThen
-
Method Details
-
tryApply
Apply this function to the given argument and produces a result.- Parameters:
v1
- Input argument.v2
- Input argument.- Returns:
- Result.
- Throws:
Exception
- If something goes wrong.
-
apply
Apply this function to the given argument and produces a result.- Specified by:
apply
in interfaceBiFunction<V1,
V2, R> - Parameters:
v1
- Input argument.v2
- Input argument.- Returns:
- Result.
-