org.aspectbench.tm.runtime.internal
Class MyWeakRef

java.lang.Object
  extended by java.lang.ref.Reference<T>
      extended by java.lang.ref.WeakReference
          extended by org.aspectbench.tm.runtime.internal.MyWeakRef

public class MyWeakRef
extends WeakReference


Field Summary
private  int hashCode
           
 
Constructor Summary
MyWeakRef(Object arg0)
           
MyWeakRef(Object arg0, ReferenceQueue arg1)
           
 
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()
           
 
Methods inherited from class java.lang.ref.Reference
clear, enqueue, get, isEnqueued
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hashCode

private int hashCode
Constructor Detail

MyWeakRef

public MyWeakRef(Object arg0)

MyWeakRef

public MyWeakRef(Object arg0,
                 ReferenceQueue arg1)
Method Detail

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