Top Description Fields Constructors Methods
com.sun.star.uno

public Class WeakReference

Additional top-level class in compilation unit: OWeakRefListener.

extends Object
Class Inheritance

This class holds weak reference to an object.

It actually holds a reference to a com.sun.star.XAdapter implementation and obtains a hard reference if necessary.

Field Summary

Modifier and TypeField and Description
private OWeakRefListener

Constructor Summary

AccessConstructor and Description
public
WeakReference(WeakReference
another instance that is to be copied.
obj
)

Creates an instance of this class.

public
WeakReference(Object
XWeak implementation.
obj
)

Creates an instance of this class.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

a hard reference to the XWeak implementation.
get
()

Returns a hard reference to the object that is kept weak by this class.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

m_listenerback to summary
private OWeakRefListener m_listener

Constructor Detail

WeakReferenceback to summary
public WeakReference(WeakReference obj)

Creates an instance of this class.

Parameters
obj:WeakReference

another instance that is to be copied.

WeakReferenceback to summary
public WeakReference(Object obj)

Creates an instance of this class.

Parameters
obj:Object

XWeak implementation.

Method Detail

getback to summary
public Object get()

Returns a hard reference to the object that is kept weak by this class.

Returns:Object

a hard reference to the XWeak implementation.