T - The type of the first argument to the function.U - The type of the second argument to the function.R - The type of the result of the function.@FunctionalInterface public interface SQLBiFunction<T,U,R>
SQLException throwing equivalent of BiFunction.| Modifier and Type | Method and Description |
|---|---|
default <V> SQLBiFunction<T,U,V> |
andThen(SQLFunction<? super R,? extends V> after)
Returns a composed function that first applies this function to its input, and then applies the
after function to the result. |
R |
apply(T t,
U u)
Applies this function to the given arguments.
|
static <T,U,R> SQLBiFunction<T,U,R> |
checked(BiFunction<? super T,? super U,? extends R> function)
Returns a function that applies the
function function to its input, and unwraps any UncheckedSQLException that is thrown by
throwing its cause. |
static <T,U,R> BiFunction<T,U,R> |
unchecked(SQLBiFunction<? super T,? super U,? extends R> function)
Returns a function that applies the
function function to its input, and wraps any SQLException that is thrown in an
UncheckedSQLException. |
R apply(T t, U u) throws SQLException
t - The first function argument.u - The second function argument.SQLException - If an SQL error occurs.default <V> SQLBiFunction<T,U,V> andThen(SQLFunction<? super R,? extends V> after)
after function to the result.
If evaluation of either function throws an exception, it is relayed to the caller of the composed function.V - The type of output of the after function, and of the composed function.after - The function to apply after this function is applied.after functionNullPointerException - If after is null.static <T,U,R> BiFunction<T,U,R> unchecked(SQLBiFunction<? super T,? super U,? extends R> function)
function function to its input, and wraps any SQLException that is thrown in an
UncheckedSQLException.T - The type of the first argument to the function.U - The type of the second argument to the function.R - The type of the result of the function.function - The function to apply when the returned function is applied.function function to its input, and wraps any SQLException that is thrown in an
UncheckedSQLException.NullPointerException - If function is null.static <T,U,R> SQLBiFunction<T,U,R> checked(BiFunction<? super T,? super U,? extends R> function)
function function to its input, and unwraps any UncheckedSQLException that is thrown by
throwing its cause.T - The type of the first argument to the function.U - The type of the second argument to the function.R - The type of the result of the function.function - The function to apply when the returned function is applied.function function to its input, and unwraps any UncheckedSQLException that is thrown.NullPointerException - If function is null.Copyright © 2017. All rights reserved.