Class IdentityExtractor
Trivial IValueExtractor implementation that does not actually extract anything from the passed value, but returns the value itself.
Inherited Members
Namespace: Tangosol.Util.Extractor
Assembly: Coherence.dll
Syntax
public class IdentityExtractor : AbstractExtractor, IValueExtractor, IQueryCacheComparer, IComparer, IPortableObject
Constructors
IdentityExtractor()
Default constructor.
Declaration
public IdentityExtractor()
Fields
Instance
An instance of the IdentityExtractor.
Declaration
public static readonly IdentityExtractor Instance
Field Value
Type | Description |
---|---|
IdentityExtractor |
Methods
Equals(object)
Compare the IdentityExtractor with another object to determine equality.
Declaration
public override bool Equals(object o)
Parameters
Type | Name | Description |
---|---|---|
object | o | The object to compare with. |
Returns
Type | Description |
---|---|
bool | true iff the passed object is an IdentityExtractor. |
Overrides
Extract(object)
Simply return the passed object.
Declaration
public override 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; |
Overrides
GetHashCode()
Determine a hash value for the IdentityExtractor object according to the general Object.GetHashCode() contract.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | An integer hash value for this IdentityExtractor object. |
Overrides
ReadExternal(IPofReader)
Restore the contents of a user type instance by reading its state using the specified IPofReader object.
Declaration
public virtual 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 description of this IdentityExtractor object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A human-readable description of this IdentityExtractor object. |
Overrides
WriteExternal(IPofWriter)
Save the contents of a POF user type instance by writing its state using the specified IPofWriter object.
Declaration
public virtual 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. |