Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: beans ::

template struct Optional<T>
Description
An optional value of a given type.

This structure is used as the type of interface attributes corresponding to instances of Property that have the PropertyAttribute::MAYBEVOID. It might also be useful in other situations, for example as the return type of an interface method.


Elements' Summary
IsPresent Marks this structure instance as having an actual value.  
Value The actual value of this structure instance.  
Elements' Details
IsPresent
boolean IsPresent;
Description
Marks this structure instance as having an actual value.
Value
T Value;
Description
The actual value of this structure instance.

If no actual value is present, a producer of such a structure instance should leave this member defaulted, and a consumer of such a structure instance should ignore the specific value stored in this member.

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

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