Microsoft SDK for Java

setReferent

This method of the WeakReference Class sets the current object being tracked.

Syntax

public void setReferent(Object object);

Parameters

object The object being tracked, or null if the object was collected.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.