Class NullImplementation.NullValueExtractor
An IValueExtractor that always results in the passed-in value.
Inherited Members
Namespace: Tangosol.Util
Assembly: Coherence.dll
Syntax
public class NullImplementation.NullValueExtractor : IValueExtractor, IPortableObject
Fields
Instance
Since the IValueExtractor contains no information, only one ever has to exist.
Declaration
public static readonly NullImplementation.NullValueExtractor Instance
Field Value
Type | Description |
---|---|
NullImplementation.NullValueExtractor |
Methods
Equals(object)
Compares this object with another object for equality.
Declaration
public override bool Equals(object o)
Parameters
Type | Name | Description |
---|---|---|
object | o | An object reference or |
Returns
Type | Description |
---|---|
bool | true if the passed object reference is of the same class and has the same state as this object. |
Overrides
Extract(object)
Extract the value from the passed object.
Declaration
public object Extract(object target)
Parameters
Type | Name | Description |
---|---|---|
object | target | An object to retrieve the value from. |
Returns
Type | Description |
---|---|
object | The extracted value as an object; |
Remarks
The returned value may be null
.
Exceptions
Type | Condition |
---|---|
InvalidCastException | If this IValueExtractor is incompatible with the passed object to extract a value from and the implementation requires the passed object to be of a certain type. |
ArgumentException | If this IValueExtractor cannot handle the passed object for any other reason; an implementor should include a descriptive message. |
GetHashCode()
Returns a hash code value for this object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code value for this object. |
Overrides
ReadExternal(IPofReader)
Restore the contents of a user type instance by reading its state using the specified IPofReader object.
Declaration
public void ReadExternal(IPofReader reader)
Parameters
Type | Name | Description |
---|---|---|
IPofReader | reader | The IPofReader from which to read the object's state. |
Exceptions
Type | Condition |
---|---|
IOException | If an I/O error occurs. |
ToString()
Provide a human-readable representation of this object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string whose contents represent the value of this object. |
Overrides
WriteExternal(IPofWriter)
Save the contents of a POF user type instance by writing its state using the specified IPofWriter object.
Declaration
public void WriteExternal(IPofWriter writer)
Parameters
Type | Name | Description |
---|---|---|
IPofWriter | writer | The IPofWriter to which to write the object's state. |
Exceptions
Type | Condition |
---|---|
IOException | If an I/O error occurs. |