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