Class CollectionUtil
Methods for manipulating (sorting) collections. Sort methods work directly on the supplied lists and don't copy to/from arrays before/after. For medium size collections as used in the Lucene indexer that is much more efficient.
Inheritance
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public sealed class CollectionUtil : object
Methods
| Improve this Doc View SourceIntroSort<T>(IList<T>)
Sorts the given random access
Declaration
public static void IntroSort<T>(IList<T> list)
Parameters
Type | Name | Description |
---|---|---|
IList<T> | list | This |
Type Parameters
Name | Description |
---|---|
T |
IntroSort<T>(IList<T>, IComparer<T>)
Sorts the given
Declaration
public static void IntroSort<T>(IList<T> list, IComparer<T> comp)
Parameters
Type | Name | Description |
---|---|---|
IList<T> | list | This |
IComparer<T> | comp | The |
Type Parameters
Name | Description |
---|---|
T |
TimSort<T>(IList<T>)
Sorts the given
Declaration
public static void TimSort<T>(IList<T> list)
Parameters
Type | Name | Description |
---|---|---|
IList<T> | list | This |
Type Parameters
Name | Description |
---|---|
T |
TimSort<T>(IList<T>, IComparer<T>)
Sorts the given
Declaration
public static void TimSort<T>(IList<T> list, IComparer<T> comp)
Parameters
Type | Name | Description |
---|---|---|
IList<T> | list | this |
IComparer<T> | comp | The |
Type Parameters
Name | Description |
---|---|
T |