public class WeakReference extends Object
Constructor and Description |
---|
WeakReference(Object obj)
Creates an instance of this class.
|
WeakReference(WeakReference obj)
Creates an instance of this class.
|
Modifier and Type | Method and Description |
---|---|
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(Object obj)
obj
- XWeak implementationpublic Object get()