Show / Hide Table of Contents

Class SimplePofPath

A static IPofNavigator implementation which uses an array of integer indices to navigate the IPofValue hierarchy.

Inheritance
object
AbstractPofPath
SimplePofPath
Implements
IPofNavigator
IPortableObject
Inherited Members
AbstractPofPath.Navigate(IPofValue)
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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

true iff this SimplePofPath and the passed object are equivalent.

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

GetPathElements()

Return a collection of path elements.

Declaration
protected override int[] GetPathElements()
Returns
Type Description
int[]

A collection of path elements.

Overrides
AbstractPofPath.GetPathElements()

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

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
AbstractPofPath.WriteExternal(IPofWriter)
Exceptions
Type Condition
IOException

If an I/O error occurs.

Implements

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