Class SimplePofPath
A static IPofNavigator implementation which uses an array of integer indices to navigate the IPofValue hierarchy.
Inherited Members
Namespace: Tangosol.IO.Pof.Reflection
Assembly: Coherence.dll
Syntax
public class SimplePofPath : AbstractPofPath, IPofNavigator, IPortableObject
Constructors
SimplePofPath()
Default constructor (necessary for the IPortableObject interface).
Declaration
public SimplePofPath()
SimplePofPath(int)
Construct a SimplePofPath using a single index as a path.
Declaration
public SimplePofPath(int nIndex)
Parameters
Type | Name | Description |
---|---|---|
int | nIndex | Index of the child value. |
SimplePofPath(params int[])
Construct a SimplePofPath using an array of indices as a path.
Declaration
public SimplePofPath(params int[] anIndices)
Parameters
Type | Name | Description |
---|---|---|
int[] | anIndices | An array of indices. |
Methods
Equals(object)
Compare the SimplePofPath 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 |
|
Overrides
Remarks
Two SimplePofPath objects are considered equal iff their indices are equal.
GetHashCode()
Determine a hash value for the SimplePofPath object according to the general GetHashCode() contract.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | An integer hash value for this SimplePofPath object. |
Overrides
GetPathElements()
Return a collection of path elements.
Declaration
protected override int[] GetPathElements()
Returns
Type | Description |
---|---|
int[] | A collection of path elements. |
Overrides
ReadExternal(IPofReader)
Restore the contents of a user type instance by reading its state using the specified IPofReader object.
Declaration
public override void ReadExternal(IPofReader reader)
Parameters
Type | Name | Description |
---|---|---|
IPofReader | reader | The IPofReader from which to read the object's state. |
Overrides
Exceptions
Type | Condition |
---|---|
IOException | If an I/O error occurs. |
ToString()
Return a human-readable description for this SimplePofPath.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A String description of the SimplePofPath. |
Overrides
WriteExternal(IPofWriter)
Save the contents of a POF user type instance by writing its state using the specified IPofWriter object.
Declaration
public override void WriteExternal(IPofWriter writer)
Parameters
Type | Name | Description |
---|---|---|
IPofWriter | writer | The IPofWriter to which to write the object's state. |
Overrides
Exceptions
Type | Condition |
---|---|
IOException | If an I/O error occurs. |