public class WeakReference
extends java.lang.Object
| Constructor and Description |
|---|
WeakReference(java.lang.Object obj)
Creates an instance of this class.
|
WeakReference(WeakReference obj)
Creates an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get()
Returns a hard reference to the object that is kept weak by this class.
|
public WeakReference(WeakReference obj)
obj - - another instance that is to be copiedpublic WeakReference(java.lang.Object obj)
obj - XWeak implementation