Class FastVirtualNodeComparer
A Node Comparer which does faster comparisons since it only does lexical comparisons for literals rather than value comparisons, and it compares virtual nodes on their VirtualID where possible.
Inheritance
System.Object
FastVirtualNodeComparer
Implements
System.Collections.Generic.IComparer<T><INode>
System.Collections.Generic.IEqualityComparer<T><INode>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public class FastVirtualNodeComparer : IComparer<INode>, IEqualityComparer<INode>
Methods
| Improve this Doc View SourceCompare(INode, INode)
Compares two Nodes.
Declaration
public int Compare(INode x, INode y)
Parameters
Type | Name | Description |
---|---|---|
INode | x | Node. |
INode | y | Node. |
Returns
Type | Description |
---|---|
int |
Equals(INode, INode)
Determine equality for two nodes.
Declaration
public bool Equals(INode x, INode y)
Parameters
Type | Name | Description |
---|---|---|
INode | x | |
INode | y |
Returns
Type | Description |
---|---|
System.Boolean | True if the nodes compare equal, false otheriwse. |
GetHashCode(INode)
Declaration
public int GetHashCode(INode obj)
Parameters
Type | Name | Description |
---|---|---|
INode | obj |
Returns
Type | Description |
---|---|
int |
Implements
System.Collections.Generic.IComparer<T>
System.Collections.Generic.IEqualityComparer<T>