Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.4.0)
E90869-02

The Optional type exposes the following members.

Constructors

  NameDescription
Public methodOptional
Default constructor.

Methods

  NameDescription
Public methodStatic memberEmpty
Returns a Optional instance with null object value.
Public methodEquals
Compares this object with another object for equality.
(Overrides Object..::..Equals(Object).)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns a hash code value for this object.
(Overrides Object..::..GetHashCode()()()().)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberOf
Returns an Optional instance with the given object value.
Public methodStatic memberOfNullable
Returns an Optional describing the specified value, if non-null, otherwise returns an empty Optional.
Public methodOrElse
Returns value if present, otherwise, return the given object.
Public methodReadExternal
Restore the contents of a user type instance by reading its state using the specified IPofReader object.
Public methodToString
Returns a non-empty string representation of this Optional suitable for debugging. The exact presentation format is unspecified and may vary between implementations and versions.
(Overrides Object..::..ToString()()()().)
Public methodWriteExternal
Save the contents of a POF user type instance by writing its state using the specified IPofWriter object.

Properties

  NameDescription
Public propertyIsPresent
Whether there is a value present.
Public propertyValue
The value of the Optional object; can be null.

See Also