Interface ISequenced<T>
An editable collection maintaining a definite sequence order of the items.
Implementations of this interface must compute the hash code and equality exactly as prescribed in the method definitions in order to be consistent with other collection classes implementing this interface. This interface is usually implemented by explicit interface implementation, not as ordinary virtual methods.
Inherited Members
System.IFormattable.ToString(System.String, System.IFormatProvider)
System.Collections.Generic.IEnumerable<T>.GetEnumerator()
Namespace: Lucene.Net.Support.C5
Assembly: Lucene.Net.dll
Syntax
public interface ISequenced<T> : ICollection<T>, IExtensible<T>, ICollection<T>, IDirectedCollectionValue<T>, ICollectionValue<T>, IShowable, IFormattable, IDirectedEnumerable<T>, IEnumerable<T>, IEnumerable
Type Parameters
Name | Description |
---|---|
T |
Methods
| Improve this Doc View SourceGetSequencedHashCode()
The hashcode is defined as
h(...h(h(h(x1),x2),x3),...,xn)
for
h(a,b)=CONSTANT*a+b
and the x's the hash codes of the items of
this collection.
Declaration
int GetSequencedHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The sequence order hashcode of this collection. |
SequencedEquals(ISequenced<T>)
Compare this sequenced collection to another one in sequence order.
Declaration
bool SequencedEquals(ISequenced<T> otherCollection)
Parameters
Type | Name | Description |
---|---|---|
ISequenced<T> | otherCollection | The sequenced collection to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | True if this collection and that contains equal (according to this collection's itemequalityComparer) in the same sequence order. |