Interface Disposable


@Deprecated public interface Disposable
Deprecated.
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 Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    Disposes of this object instance.
  • Method Details

    • dispose

      void dispose()
      Deprecated.
      Disposes of this object instance.

      If already disposed, no action will be taken and no exception thrown.