|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ref.Reference<T>
java.lang.ref.WeakReference
org.python.modules._weakref.GlobalRef
public class GlobalRef
Constructor Summary | |
---|---|
GlobalRef(PyObject object)
|
Method Summary | |
---|---|
void |
add(AbstractReference ref)
|
int |
count()
|
boolean |
equals(Object o)
Allow GlobalRef's to be used as hashtable keys. |
static int |
getCount(PyObject object)
Return the number of references to the specified PyObject. |
static PyList |
getRefs(PyObject object)
Return a list of references to the specified PyObject. |
int |
hashCode()
Allows GlobalRef to be used as hashtable keys. |
static GlobalRef |
newInstance(PyObject object)
Create a new tracked GlobalRef. |
int |
pythonHashCode()
The publicly used hashCode, for the AbstractReference wrapper. |
PyList |
refs()
|
Methods inherited from class java.lang.ref.Reference |
---|
clear, enqueue, get, isEnqueued |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlobalRef(PyObject object)
Method Detail |
---|
public void add(AbstractReference ref)
public int count()
public PyList refs()
public static GlobalRef newInstance(PyObject object)
object
- a PyObject to reference
public static int getCount(PyObject object)
object
- a PyObject
public static PyList getRefs(PyObject object)
object
- a PyObject
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int pythonHashCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |