BaseObj
open class BaseObj
| kotlin.Any | |
| ↳ | android.renderscript.BaseObj |
BaseObj is the base class for all RenderScript objects owned by a RS context. It is responsible for lifetime management and resource tracking. This class should not be used by a user application.
Summary
Public methods |
|
|---|---|
| open Unit |
destroy()Frees any native resources associated with this object. |
| open Boolean |
Compare the current BaseObj with another BaseObj for equality. |
| open String! |
getName() |
| open Int |
hashCode()Calculates the hash code value for a BaseObj. |
| open Unit |
setName assigns a name to an object. |
Protected methods |
|
|---|---|
| open Unit |
finalize() |
Public methods
destroy
open fun destroy(): Unit
Frees any native resources associated with this object. The primary use is to force immediate cleanup of resources when it is believed the GC will not respond quickly enough.
equals
open fun equals(other: Any?): Boolean
Compare the current BaseObj with another BaseObj for equality.
| Parameters | |
|---|---|
obj |
The object to check equality with. |
| Return | |
|---|---|
Boolean |
boolean |
getName
open fun getName(): String!
| Return | |
|---|---|
String! |
name of the renderscript object |
hashCode
open fun hashCode(): Int
Calculates the hash code value for a BaseObj.
| Return | |
|---|---|
Int |
int |
setName
open fun setName(name: String!): Unit
setName assigns a name to an object. This object can later be looked up by this name.
| Parameters | |
|---|---|
name |
String!: The name to assign to the object. |
Protected methods
finalize
protected open fun finalize(): Unit
| Exceptions | |
|---|---|
java.lang.Throwable |
the Exception raised by this method |