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<T><ISet>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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<T><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 |
---|---|
int | Hash Code. |
Implements
System.Collections.Generic.IEqualityComparer<T>