org.python.modules
Class _weakref.GlobalRef

java.lang.Object
  extended byjava.lang.ref.Reference
      extended byjava.lang.ref.WeakReference
          extended byorg.python.modules._weakref.GlobalRef
Enclosing class:
_weakref

public static class _weakref.GlobalRef
extends WeakReference


Constructor Summary
_weakref.GlobalRef(PyObject object)
           
_weakref.GlobalRef(PyObject object, ReferenceQueue queue)
           
 
Method Summary
 void add(_weakref.AbstractReference ref)
           
 int count()
           
 boolean equals(Object o)
          Allow GlobalRef's to be used as hashtable keys.
 int hashCode()
          Allow GlobalRef's to be used as hashtable keys.
 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

_weakref.GlobalRef

public _weakref.GlobalRef(PyObject object)

_weakref.GlobalRef

public _weakref.GlobalRef(PyObject object,
                          ReferenceQueue queue)
Method Detail

add

public void add(_weakref.AbstractReference ref)

count

public int count()

refs

public PyList refs()

equals

public boolean equals(Object o)
Allow GlobalRef's to be used as hashtable keys.


hashCode

public int hashCode()
Allow GlobalRef's to be used as hashtable keys.