Class SetDistinctnessComparer
Comparer for checking whether sets are distinct, check may either be using the entire set or by using only a subset of variables.
Inheritance
System.Object
SetDistinctnessComparer
Implements
System.Collections.Generic.IEqualityComparer<ISet>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Query.Algebra
Assembly: dotNetRDF.dll
Syntax
public class SetDistinctnessComparer : IEqualityComparer<ISet>
Constructors
| Improve this Doc View SourceSetDistinctnessComparer()
Creates a new comparer that compares across all variables.
Declaration
public SetDistinctnessComparer()
SetDistinctnessComparer(IEnumerable<String>)
Creates a new comparer that compare only on the specific variables.
Declaration
public SetDistinctnessComparer(IEnumerable<string> variables)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.String> | variables | Variables. |
Methods
| Improve this Doc View SourceEquals(ISet, ISet)
Determines whether the given sets are equal.
Declaration
public bool Equals(ISet x, ISet y)
Parameters
Type | Name | Description |
---|---|---|
ISet | x | First Set. |
ISet | y | Second Set. |
Returns
Type | Description |
---|---|
System.Boolean | True if sets are equal, false otherwise. |
GetHashCode(ISet)
Gets the hash code for a set.
Declaration
public int GetHashCode(ISet obj)
Parameters
Type | Name | Description |
---|---|---|
ISet | obj | Set. |
Returns
Type | Description |
---|---|
System.Int32 | Hash Code. |
Implements
System.Collections.Generic.IEqualityComparer<T>