T - The type of the input to the function.@FunctionalInterface public interface ToDoubleSQLFunction<T>
SQLException throwing equivalent of ToDoubleFunction.| Modifier and Type | Method and Description |
|---|---|
double |
applyAsDouble(T value)
Applies this function to the given argument.
|
static <T> ToDoubleSQLFunction<T> |
checked(ToDoubleFunction<? super T> 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> ToDoubleFunction<T> |
unchecked(ToDoubleSQLFunction<? super T> function)
Returns a function that applies the
function function to its input, and wraps any SQLException that is thrown in an
UncheckedSQLException. |
double applyAsDouble(T value) throws SQLException
value - The function argument.SQLException - If an SQL error occurs.static <T> ToDoubleFunction<T> unchecked(ToDoubleSQLFunction<? super T> 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.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> ToDoubleSQLFunction<T> checked(ToDoubleFunction<? super T> 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.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.