Uses of Interface
org.postgresql.pljava.internal.Checked.AutoCloseable
-
Packages that use Checked.AutoCloseable Package Description org.postgresql.pljava.internal Java classes implementing core PL/Java behavior. -
-
Uses of Checked.AutoCloseable in org.postgresql.pljava.internal
Classes in org.postgresql.pljava.internal that implement Checked.AutoCloseable Modifier and Type Class Description static class
Checked.Closing<T,E extends Exception>
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
.Methods in org.postgresql.pljava.internal that return Checked.AutoCloseable Modifier and Type Method Description static <E extends Exception>
Checked.AutoCloseable<E>Checked. closing(Checked.AutoCloseable<E> o)
Returns its argument; shorthand for casting a suitable lambda toAutoCloseable<E>
.Methods in org.postgresql.pljava.internal with parameters of type Checked.AutoCloseable Modifier and Type Method Description static <E extends Exception>
Checked.AutoCloseable<E>Checked. closing(Checked.AutoCloseable<E> o)
Returns its argument; shorthand for casting a suitable lambda toAutoCloseable<E>
.static <T,E extends Exception>
Checked.Closing<T,E>Checked. closing(T payload, Checked.AutoCloseable<E> closer)
Wrap some payload and a 'closer' lambda as aClosing
instance that can supply the payload and implementsAutoCloseable
using the lambda; useful in atry
-with-resources when the payload itself does not implementAutoCloseable
.
-