@FunctionalInterface public interface DoubleUnarySQLOperator
double-valued operand that produces a double-valued result.
This is the SQLException throwing equivalent of DoubleUnaryOperator.| Modifier and Type | Method and Description |
|---|---|
default DoubleUnarySQLOperator |
andThen(DoubleUnarySQLOperator after)
Returns a composed operator that first applies this operator to its input, and then applies the
after operator to the result. |
double |
applyAsDouble(double operand)
Applies this operator to the given operand.
|
static DoubleUnarySQLOperator |
checked(DoubleUnaryOperator operator)
Returns a unary operator that applies the
operator operator to its input, and unwraps any UncheckedSQLException that is thrown
by throwing its cause. |
default DoubleUnarySQLOperator |
compose(DoubleUnarySQLOperator before)
Returns a composed operator that first applies the
before operator to its input, and then applies this operator to the result. |
static DoubleUnarySQLOperator |
identity()
Returns a unary operator that always returns its input argument.
|
static DoubleUnaryOperator |
unchecked(DoubleUnarySQLOperator operator)
Returns a unary operator that applies the
operator operator to its input, and wraps any SQLException that is thrown in an
UncheckedSQLException. |
double applyAsDouble(double operand)
throws SQLException
operand - The operand.SQLException - If an SQL error occurs.default DoubleUnarySQLOperator compose(DoubleUnarySQLOperator before)
before operator to its input, and then applies this operator to the result.
If evaluation of either operator throws an exception, it is relayed to the caller of the composed operator.before - The operator to apply before this operator is applied.before operator and then applies this operator.NullPointerException - If before is null.andThen(DoubleUnarySQLOperator)default DoubleUnarySQLOperator andThen(DoubleUnarySQLOperator after)
after operator to the result.
If evaluation of either operator throws an exception, it is relayed to the caller of the composed operator.after - The operator to apply after this operator is applied.after operator.NullPointerException - If after is null.compose(DoubleUnarySQLOperator)static DoubleUnarySQLOperator identity()
static DoubleUnaryOperator unchecked(DoubleUnarySQLOperator operator)
operator operator to its input, and wraps any SQLException that is thrown in an
UncheckedSQLException.operator - The unary operator to apply when the returned unary operator is applied.operator operator to its input, and wraps any SQLException that is thrown in an
UncheckedSQLException.NullPointerException - If operator is null.static DoubleUnarySQLOperator checked(DoubleUnaryOperator operator)
operator operator to its input, and unwraps any UncheckedSQLException that is thrown
by throwing its cause.operator - The unary operator to apply when the returned unary operator is applied.operator operator to its input, and unwraps any UncheckedSQLException that is thrown.NullPointerException - If operator is null.Copyright © 2017. All rights reserved.