DisposableObject
Contents
[
Hide
]Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.ms.System.IDisposable, java.io.Closeable
public class DisposableObject implements System.IDisposable, Closeable
Represents disposable object.
Constructors
| Constructor | Description | 
|---|---|
| DisposableObject() | 
Methods
| Method | Description | 
|---|---|
| close() | Implements the Closable interface and can be used in the try-with-resources statement since JDK 1.7. | 
| dispose() | Disposes the current instance. | 
| equals(Object arg0) | |
| getClass() | |
| getDisposed() | Gets a value indicating whether this instance is disposed. | 
| hashCode() | |
| notify() | |
| notifyAll() | |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) | 
DisposableObject()
public DisposableObject()
close()
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.
dispose()
public final void dispose()
Disposes the current instance.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| arg0 | java.lang.Object | 
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getDisposed()
public final boolean getDisposed()
Gets a value indicating whether this instance is disposed.
Returns: boolean - true if disposed; otherwise, false .
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| arg0 | long | 
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| arg0 | long | |
| arg1 | int |