Interface IDisposable

All Known Subinterfaces:
IEventSubscription
All Known Implementing Classes:
DisposableWrapper

public interface IDisposable
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method is called to dispose of the resources held by the object that implements this interface.
    boolean
    This method is used to check if the object has been disposed of.
  • Method Details

    • dispose

      void dispose()
      This method is called to dispose of the resources held by the object that implements this interface. The exact behavior of the method will depend on the implementation of the object, but it is typically used to release any resources that the object has acquired, such as open files or network connections.
    • isDisposed

      boolean isDisposed()
      This method is used to check if the object has been disposed of. It is typically used to check if it is safe to call the `dispose()` method again.
      Returns:
      boolean