Class SequencedCollectionEqualityComparer<T, W>
Prototype for a sequenced equalityComparer for something (T) that implements ISequenced[W]. This will use ISequenced[W] specific implementations of the equality comparer operations.
Inheritance
System.Object
SequencedCollectionEqualityComparer<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 SequencedCollectionEqualityComparer<T, W> : IEqualityComparer<T> where T : ISequenced<W>
Type Parameters
Name | Description |
---|---|
T | |
W |
Properties
| Improve this Doc View SourceDefault
Declaration
public static SequencedCollectionEqualityComparer<T, W> Default { get; }
Property Value
Type | Description |
---|---|
SequencedCollectionEqualityComparer<T, W> |
Methods
| Improve this Doc View SourceEquals(T, T)
Check if two items are equal with respect to this sequenced 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 sequenced 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>