Interface Disposable

  • @Deprecated
    public interface Disposable
    Please use AutoCloseable.
    Any object that should be disposed programatically.

    To aid in debugging, any object that is disposable should throw DisposedException when any of its methods (besides dispose itself) are accessed after being disposed.

    • Method Detail

      • dispose

        void dispose()
        Disposes of this object instance. If already disposed, no action will be taken and no exception thrown.