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 of
AutoCloseable
with an exception-type
parameter.
This does not need use
or ederWrap
methods because Java's
AutoCloseable
already allows checked exceptions. The only trouble
with the Java one is it can't be parameterized to narrow the thrown type
from Exception
. In Java's API docs, implementers are "strongly
encouraged" to narrow their throws
clauses, but that's only
helpful where the compiler sees the specific implementing class.
-
Method Summary
-
Method Details
-
close
void close() throws E- Specified by:
close
in interfaceAutoCloseable
- Throws:
E
-