Class UnsequencedCollectionEqualityComparer<T, W>
Prototype for an unsequenced equalityComparer for something (T) that implements ICollection[W] This will use ICollection[W] specific implementations of the equalityComparer operations
Inheritance
System.Object
UnsequencedCollectionEqualityComparer<T, W>
Implements
System.Collections.Generic.IEqualityComparer<T>
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: Lucene.Net.Support.C5
Assembly: Lucene.Net.dll
Syntax
public class UnsequencedCollectionEqualityComparer<T, W> : IEqualityComparer<T> where T : ICollection<W>
Type Parameters
Name | Description |
---|---|
T | |
W |
Properties
| Improve this Doc View SourceDefault
Declaration
public static UnsequencedCollectionEqualityComparer<T, W> Default { get; }
Property Value
Type | Description |
---|---|
UnsequencedCollectionEqualityComparer<T, W> |
Methods
| Improve this Doc View SourceEquals(T, T)
Check if two collections are equal with respect to this unsequenced equalityComparer
Declaration
public bool Equals(T collection1, T collection2)
Parameters
Type | Name | Description |
---|---|---|
T | collection1 | first collection |
T | collection2 | second collection |
Returns
Type | Description |
---|---|
System.Boolean | True if equal |
GetHashCode(T)
Get the hash code with respect to this unsequenced equalityComparer
Declaration
public int GetHashCode(T collection)
Parameters
Type | Name | Description |
---|---|---|
T | collection | The collection |
Returns
Type | Description |
---|---|
System.Int32 | The hash code |
Implements
System.Collections.Generic.IEqualityComparer<T>