public interface SafeDisposable
dispose() method may be used carefully on some objects (because they
may be shared in a scene graph for example). We may be sured that the object
is no longer needed. Use the
isDisposable() method of this interface
to know if it is safe to explicitly dispose the object.
|Modifier and Type||Method and Description|
Explicitly call this method to force object to dispose its unmanaged resources.
Returns a boolean flag which indicates if it is safe to call
dispose()on the object.
trueif the object can be disposed in a safe manner
java.lang.IllegalStateException- if the object is already disposed
isDisposable() method first to know if this object can be
disposed in a safe manner.
The object may not be reused in the application code after this call.
trueif this object native resources were successfully disposed.
java.lang.IllegalStateException- if the object is already disposed or is being used
Generated on March 25, 2020, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com