Package org.postgresql.pljava.internal
Class Checked.Closing<T,E extends Exception>
- java.lang.Object
-
- org.postgresql.pljava.internal.Checked.Closing<T,E>
-
- All Implemented Interfaces:
AutoCloseable
,Supplier<T>
,Checked.AutoCloseable<E>
public static class Checked.Closing<T,E extends Exception> extends Object implements Supplier<T>, Checked.AutoCloseable<E>
A class that can supply aT
while also implementingAutoCloseable<E>
; suitable for use in atry
-with-resources to wrap some value that does not itself implementAutoCloseable
.Obtained via one of the
closing
methods above.