public class WeakObject<T> extends WeakReference<T>
Constructor and Description |
---|
WeakObject(T object)
Construct a new reference.
|
WeakObject(T obj,
ReferenceQueue<? super T> queue)
Construct a WeakObject.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Check the equality of an object with this.
|
int |
hashCode()
Return the hash code of the nested object.
|
clear, enqueue, get, isEnqueued
public WeakObject(T object)
object
- Object to reference.public WeakObject(T obj, ReferenceQueue<? super T> queue)
obj
- Object to reference.queue
- Reference queue.public boolean equals(Object object)
Copyright © 2015. All Rights Reserved.