org.aspectbench.tm.runtime.internal
Class MyWeakRef
java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.WeakReference
org.aspectbench.tm.runtime.internal.MyWeakRef
public class MyWeakRef
- extends WeakReference
Method Summary |
boolean |
equals(Object obj)
A MyWeakRef is equal to an Object if either the Object is a MyWeakRef and there's reference
equality between the referents, or the Object isn't a MyWeakRef, and there's reference equality
between that object and the referent of this MyWeakRef. |
int |
hashCode()
|
hashCode
private int hashCode
MyWeakRef
public MyWeakRef(Object arg0)
MyWeakRef
public MyWeakRef(Object arg0,
ReferenceQueue arg1)
equals
public boolean equals(Object obj)
- A MyWeakRef is equal to an Object if either the Object is a MyWeakRef and there's reference
equality between the referents, or the Object isn't a MyWeakRef, and there's reference equality
between that object and the referent of this MyWeakRef.
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object