:: com :: sun :: star :: beans ::
|
unpublished |
template struct Optional<T> |
|
|
|
- Usage Restrictions
- not published
- 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
Copyright © 1995, 2012, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.