@FunctionalInterface public interface BooleanSQLSupplier
boolean-valued results.
This is the SQLException throwing equivalent of BooleanSupplier.| Modifier and Type | Method and Description |
|---|---|
static BooleanSQLSupplier |
checked(BooleanSupplier supplier)
Returns a supplier that returns the result of the
supplier supplier, and unwraps any UncheckedSQLException that is thrown by
throwing its cause. |
boolean |
getAsBoolean()
Gets a result.
|
static BooleanSupplier |
unchecked(BooleanSQLSupplier supplier)
Returns a supplier that returns the result of the
supplier supplier, and wraps any SQLException that is thrown in an
UncheckedSQLException. |
boolean getAsBoolean()
throws SQLException
SQLException - If an SQL error occurs.static BooleanSupplier unchecked(BooleanSQLSupplier supplier)
supplier supplier, and wraps any SQLException that is thrown in an
UncheckedSQLException.supplier - The supplier that will provide results for the returned supplier.supplier supplier, and wraps any SQLException that is thrown in an
UncheckedSQLException.NullPointerException - If supplier is null.static BooleanSQLSupplier checked(BooleanSupplier supplier)
supplier supplier, and unwraps any UncheckedSQLException that is thrown by
throwing its cause.supplier - The supplier that will provide results for the returned supplier.supplier supplier, and unwraps any UncheckedSQLException that is thrown.NullPointerException - If supplier is null.Copyright © 2017. All rights reserved.