R - The type of the result of the function.@FunctionalInterface public interface IntSQLFunction<R>
SQLException throwing equivalent of IntFunction.| Modifier and Type | Method and Description |
|---|---|
R |
apply(int value)
Applies this function to the given argument.
|
static <R> IntSQLFunction<R> |
checked(IntFunction<? 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 <R> IntFunction<R> |
unchecked(IntSQLFunction<? 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(int value) throws SQLException
value - The function argument.SQLException - If an SQL error occurs.static <R> IntFunction<R> unchecked(IntSQLFunction<? extends R> function)
function function to its input, and wraps any SQLException that is thrown in an
UncheckedSQLException.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 <R> IntSQLFunction<R> checked(IntFunction<? extends R> function)
function function to its input, and unwraps any UncheckedSQLException that is thrown by
throwing its cause.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.