Interface AutoCloser.Closer<T,​E extends Exception>

    • Method Detail

      • close

        void close​(@NonNull
                   T object)
            throws E extends Exception
        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
        E extends Exception