BaseObj
open classBaseObj
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 fundestroy(): Unit
Deprecated: Deprecated in Java.
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 funequals(other: Any?): Boolean
Deprecated: Deprecated in Java.
Compare the current BaseObj with another BaseObj for equality.
Parameters | |
---|---|
obj |
The object to check equality with. |
Return | |
---|---|
Boolean |
boolean |
getName
open fungetName(): String!
Deprecated: Deprecated in Java.
Return | |
---|---|
String! |
name of the renderscript object |
hashCode
open funhashCode(): Int
Deprecated: Deprecated in Java.
Calculates the hash code value for a BaseObj.
Return | |
---|---|
Int |
int |
setName
open funsetName(name: String!): Unit
Deprecated: Deprecated in Java.
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 funfinalize(): Unit
Deprecated: Deprecated in Java.
Exceptions | |
---|---|
java.lang.Throwable |
the Exception raised by this method |