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 |
---|---|
boolean |
dispose()
Explicitly call this method to force object to dispose its unmanaged
resources.
|
boolean |
isDisposable()
Returns a boolean flag which indicates if it is safe to call
dispose() on the object. |
boolean isDisposable()
dispose()
on the object.true
if the object can be disposed in a safe mannerjava.lang.IllegalStateException
- if the object is already disposedboolean dispose()
Call 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.
true
if this object native resources were successfully
disposed.java.lang.IllegalStateException
- if the object is already disposed or is being usedGenerated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com