The Free and Open Productivity Suite
QA Volunteers Needed -- Help us test OpenOffice

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for Apache OpenOffice version 3.4.

UDK 3.2.7 Java API Reference

com.sun.star.uno
Class WeakReference

java.lang.Object
  extended by com.sun.star.uno.WeakReference

public class WeakReference
extends Object

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.


Constructor Summary
WeakReference(Object obj)
          Creates an instance of this class.
WeakReference(WeakReference obj)
          Creates an instance of this class.
 
Method Summary
 Object get()
          Returns a hard reference to the object that is kept weak by this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeakReference

public WeakReference(WeakReference obj)
Creates an instance of this class.

Parameters:
obj - - another instance that is to be copied

WeakReference

public WeakReference(Object obj)
Creates an instance of this class.

Parameters:
obj - XWeak implementation
Method Detail

get

public Object get()
Returns a hard reference to the object that is kept weak by this class.

Returns:
a hard reference to the XWeak implementation.

UDK 3.2.7 Java API Reference

Apache Feather

Copyright & License | Privacy | Contact Us | Donate

Apache, the Apache feather logo, and OpenOffice are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.