public class WeakObject<T>
extends java.lang.ref.WeakReference<T>
Modifier and Type | Field and Description |
---|---|
protected int |
hashcode
The hash code.
|
Constructor and Description |
---|
WeakObject(T object)
Construct a new reference.
|
WeakObject(T obj,
java.lang.ref.ReferenceQueue<? super T> queue)
Construct a
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object)
Check the equality of an object with this.
|
int |
hashCode()
Return the hash code of the nested object.
|
public WeakObject(T object)
object
- Object to reference.public WeakObject(T obj, java.lang.ref.ReferenceQueue<? super T> queue)
obj
- Object to reference.queue
- Reference queue.public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- Object to test equality with.public int hashCode()
hashCode
in class java.lang.Object