Show / Hide Table of Contents

Class IdentityExtractor

Trivial IValueExtractor implementation that does not actually extract anything from the passed value, but returns the value itself.

Inheritance
object
AbstractExtractor
IdentityExtractor
Implements
IValueExtractor
IQueryCacheComparer
IComparer
IPortableObject
Inherited Members
AbstractExtractor.Target
AbstractExtractor.Compare(object, object)
AbstractExtractor.CompareEntries(IQueryCacheEntry, IQueryCacheEntry)
AbstractExtractor.ExtractFromEntry(ICacheEntry)
AbstractExtractor.ExtractOriginalFromEntry(CacheEntry)
AbstractExtractor.VALUE
AbstractExtractor.KEY
AbstractExtractor.m_target
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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
object.Equals(object)

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; null is an acceptable value.

Overrides
AbstractExtractor.Extract(object)

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
object.GetHashCode()

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
object.ToString()

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.

Implements

IValueExtractor
IQueryCacheComparer
IComparer
IPortableObject
In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.