public class NSObject
extends java.lang.Object
Constructor and Description |
---|
NSObject(long ptr)
Initializes a new NSObject instance which is to represent a
specific Objective-C object.
|
Modifier and Type | Method and Description |
---|---|
long |
getPtr()
Gets the pointer to the Objective-C object represented by this instance.
|
void |
release()
Decrements the reference count of the Objective-C object represented by
this instance.
|
static void |
release(long ptr)
Decrements the reference count of a specific Objective-C object.
|
void |
retain()
Increments the reference count of the Objective-C object represented by
this instance.
|
(package private) static void |
retain(long ptr)
Increments the reference count of a specific Objective-C object.
|
protected void |
setPtr(long ptr)
Sets the pointer to the Objective-C object represented by this instance.
|
public NSObject(long ptr)
ptr
- the pointer to the Objective-C object to be represented by the
new instancepublic long getPtr()
public void release()
public static void release(long ptr)
ptr
- the pointer to the Objective-C object to decrement the
reference count ofpublic void retain()
static void retain(long ptr)
ptr
- the pointer to be Objective-C object to increment the
reference count ofprotected void setPtr(long ptr)
ptr
- the pointer to the Objective-C object to be represented by
this instance
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.