68 |
* work. It is useful to keep track, when an object is finalized. |
* work. It is useful to keep track, when an object is finalized. |
69 |
* |
* |
70 |
* @author Jochen Hoenicke |
* @author Jochen Hoenicke |
71 |
* @see java.util.WeakHashtable |
* @see java.util.WeakHashMap |
72 |
*/ |
*/ |
73 |
public abstract class Reference |
public abstract class Reference |
74 |
{ |
{ |
104 |
* Creates a new reference that is not registered to any queue. |
* Creates a new reference that is not registered to any queue. |
105 |
* Since it is package private, it is not possible to overload this |
* Since it is package private, it is not possible to overload this |
106 |
* class in a different package. |
* class in a different package. |
107 |
* @param referent the object we refer to. |
* @param ref the object we refer to. |
108 |
*/ |
*/ |
109 |
Reference(Object ref) |
Reference(Object ref) |
110 |
{ |
{ |
115 |
* Creates a reference that is registered to a queue. Since this is |
* Creates a reference that is registered to a queue. Since this is |
116 |
* package private, it is not possible to overload this class in a |
* package private, it is not possible to overload this class in a |
117 |
* different package. |
* different package. |
118 |
* @param referent the object we refer to. |
* @param ref the object we refer to. |
119 |
* @param q the reference queue to register on. |
* @param q the reference queue to register on. |
120 |
* @exception NullPointerException if q is null. |
* @exception NullPointerException if q is null. |
121 |
*/ |
*/ |