@FunctionalInterface public interface IntSQLSupplier
int-valued results.
This is the SQLException throwing equivalent of IntSupplier.| Modifier and Type | Method and Description |
|---|---|
static IntSQLSupplier |
checked(IntSupplier supplier)
Returns a supplier that returns the result of the
supplier supplier, and unwraps any UncheckedSQLException that is thrown by
throwing its cause. |
int |
getAsInt()
Gets a result.
|
static IntSupplier |
unchecked(IntSQLSupplier supplier)
Returns a supplier that returns the result of the
supplier supplier, and wraps any SQLException that is thrown in an
UncheckedSQLException. |
int getAsInt()
throws SQLException
SQLException - If an SQL error occurs.static IntSupplier unchecked(IntSQLSupplier 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 IntSQLSupplier checked(IntSupplier 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.