Module dev.metaschema.core
Package dev.metaschema.core.util
Interface AutoCloser.Closer<T,E extends Exception>
- Type Parameters:
T- the Java type of the object being closedE- the Java type of the exception that can be thrown when closing
- Enclosing class:
- AutoCloser<T,
E extends Exception>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A callback interface representing a close operation.
-
Method Summary
-
Method Details
-
close
This method is called to auto-close the resource.- Parameters:
object- the resource to auto-close- Throws:
E- the exception type that can be thrown when closing
-