public class DisposableObject extends Object
Represents disposable object.
| Constructor and Description |
|---|
DisposableObject() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Implements the Closable interface and can be used in the try-with-resources statement since JDK 1.7.
|
void |
dispose()
Disposes the current instance.
|
boolean |
getDisposed()
Gets a value indicating whether this instance is disposed.
|
public final boolean getDisposed()
Gets a value indicating whether this instance is disposed.
true if disposed; otherwise, false.public final void dispose()
Disposes the current instance.
public void close()
Implements the Closable interface and can be used in the try-with-resources statement since JDK 1.7. This method simply call dispose method.
Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.