Interface Disposable

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
BoundArgumentProperty, ComponentPalette, PraxisProperty, PXRRootProxy

public interface Disposable extends AutoCloseable
An object that may be disposed.

This interface now extends AutoCloseable for convenience. The default implementation of close() calls through to dispose().

  • Method Summary

    Modifier and Type
    Method
    Description
    default void
     
    void
    Dispose of this object.
    static void
    Utility to dispose an object if it is an instance of Disposable.
  • Method Details

    • close

      default void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception
    • dispose

      void dispose()
      Dispose of this object.
    • dispose

      static void dispose(Object obj)
      Utility to dispose an object if it is an instance of Disposable. If the object is not disposable, this method does nothing.
      Parameters:
      obj - object, possibly disposable