Package org.postgresql.pljava.internal
Interface Checked.AutoCloseable<E extends Exception>
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
Checked.Closing
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface Checked.AutoCloseable<E extends Exception> extends AutoCloseable
Version ofAutoCloseable
with an exception-type parameter.This does not need
use
orederWrap
methods because Java'sAutoCloseable
already allows checked exceptions. The only trouble with the Java one is it can't be parameterized to narrow the thrown type fromException
. In Java's API docs, implementers are "strongly encouraged" to narrow theirthrows
clauses, but that's only helpful where the compiler sees the specific implementing class.
-
-
Method Summary
Modifier and Type Method Description void
close()
-