TSortedList<T> Class

Represents type TSortedList<T>.

Namespace: Spring.Collections.Lists
TInterfacedObject
  Spring.TInterfacedObjectEx
    Spring.Collections.Base.TEnumerableBase
      Spring.Collections.Base.TEnumerableBase<T>
        Spring.Collections.Base.TCollectionBase<T>
          Spring.Collections.Base.TListBase<T>
            Spring.Collections.Lists.TList<T>
              Spring.Collections.Lists.TSortedList<T>
                Spring.Collections.Lists.TFoldedSortedInterfaceList<T>
                Spring.Collections.Lists.TSortedObjectList<T>
type
 TSortedList<T> = class(TList<T>)
 end;

Type Parameters

T

The TSortedList<T> type exposes the following members.

Show:
 NameDescription
Create(IComparer)

Overloaded. Initializes a new instance of the TEnumerableBase<T> class. (Inherited from TEnumerableBase<T>.)

Create(IEnumerable<T>)

Initializes a new instance of the TList<T> class. (Overrides TCollectionBase<T>.Create(IEnumerable<T>).)

Create(TComparison)

Overloaded. Initializes a new instance of the TEnumerableBase<T> class. (Inherited from TEnumerableBase<T>.)

Create(T[])

Initializes a new instance of the TList<T> class. (Overrides TCollectionBase<T>.Create(T[]).)

Top
Show:
 NameDescription
Capacity

Represents property Capacity. (Inherited from TListBase<T>.)

Comparer

Gets the assigned comparer. If not comparer was assigned it returns the default comparer. (Inherited from TEnumerableBase<T>.)

Count

Returns the number of elements in a sequence. (Inherited from TListBase<T>.)

ElementType

Returns the type of the elements in the sequence. (Inherited from TEnumerableBase.)

EqualityComparer

Represents property EqualityComparer. (Inherited from TEnumerableBase<T>.)

IsEmpty

Determines whether a countable contains no elements. (Inherited from TEnumerableBase.)

IsReadOnly

Gets a value indicating whether the ICollection<T> is read-only. (Inherited from TCollectionBase<T>.)

Items[Integer]

Represents property Items[Integer]. (Inherited from TListBase<T>.)

OnChanged

Represents property OnChanged. (Inherited from TCollectionBase<T>.)

RefCount

Represents property RefCount. (Inherited from TInterfacedObjectEx.)

Top
Show:
 NameDescription
Add(T)

Represents method Add(T). (Overrides TListBase<T>.Add(T).)

AddInternal(T)

Represents method AddInternal(T). (Overrides TCollectionBase<T>.AddInternal(T).)

AddRange(IEnumerable<T>)

Represents method AddRange(IEnumerable<T>). (Overrides TListBase<T>.AddRange(IEnumerable<T>).)

AddRange(T[])

Represents method AddRange(T[]). (Overrides TListBase<T>.AddRange(T[]).)

Aggregate(TFunc)

Applies an accumulator function over a sequence. (Inherited from TEnumerableBase<T>.)

All(TPredicate<T>)

Determines whether all elements of a sequence satisfy a condition. (Inherited from TEnumerableBase<T>.)

Any(TPredicate<T>)

Overloaded. Determines whether any element of a sequence satisfies a condition. (Inherited from TEnumerableBase<T>.)

AsObject

Returns the reference to this instance. (Inherited from TEnumerableBase.)

BeforeDestruction

Represents method BeforeDestruction. (Inherited from TInterfacedObjectEx.)

Changed(T,TCollectionChangedAction)

Represents method Changed(T,TCollectionChangedAction). (Inherited from TCollectionBase<T>.)

Clear

Removes all items from the ICollection<T>. (Overrides TListBase<T>.Clear.)

Concat(IEnumerable<T>)

Represents method Concat(IEnumerable<T>). (Inherited from TEnumerableBase<T>.)

Contains(T)

Determines whether a sequence contains a specified element by using the default equality comparer. (Overrides TEnumerableBase<T>.Contains(T).)

Contains(T,TEqualityComparison)

Overloaded. Represents method Contains(T,TEqualityComparison). (Inherited from TEnumerableBase<T>.)

CopyTo(TArray,Integer)

Copies the elements of the ICollection<T> to an array, starting at a particular array index. (Overrides TCollectionBase<T>.CopyTo(TArray,Integer).)

Delete(Integer)

Removes the item at the specified index. (Overrides TListBase<T>.Delete(Integer).)

DeleteRange(Integer,Integer)

Represents method DeleteRange(Integer,Integer). (Overrides TListBase<T>.DeleteRange(Integer,Integer).)

ElementAt(Integer)

Returns the element at a specified index in a sequence. (Inherited from TEnumerableBase<T>.)

ElementAtOrDefault(Integer)

Overloaded. Returns the element at a specified index in a sequence or a default value if the index is out of range. (Inherited from TEnumerableBase<T>.)

ElementAtOrDefault(Integer,T)

Overloaded. Returns the element at a specified index in a sequence or the specified default value if the index is out of range. (Inherited from TEnumerableBase<T>.)

EnsureCapacity(Integer)

Represents method EnsureCapacity(Integer). (Inherited from TList<T>.)

EqualsTo(IEnumerable<T>)

Overloaded. Represents method EqualsTo(IEnumerable<T>). (Inherited from TEnumerableBase<T>.)

EqualsTo(IEnumerable<T>,IEqualityComparer)

Overloaded. Represents method EqualsTo(IEnumerable<T>,IEqualityComparer). (Inherited from TEnumerableBase<T>.)

EqualsTo(T[])

Overloaded. Determines whether two sequences are equal by comparing the elements by using the default equality comparer for their type. (Inherited from TEnumerableBase<T>.)

Exchange(Integer,Integer)

Represents method Exchange(Integer,Integer). (Overrides TList<T>.Exchange(Integer,Integer).)

Extract(T)

Represents method Extract(T). (Overrides TCollectionBase<T>.Extract(T).)

ExtractAll(TPredicate<T>)

Represents method ExtractAll(TPredicate<T>). (Overrides TCollectionBase<T>.ExtractAll(TPredicate<T>).)

ExtractAt(Integer)

Extracts the item at the specified index. (Overrides TListBase<T>.ExtractAt(Integer).)

ExtractRange(IEnumerable<T>)

Overloaded. Represents method ExtractRange(IEnumerable<T>). (Inherited from TCollectionBase<T>.)

ExtractRange(Integer,Integer)

Overloaded. Represents method ExtractRange(Integer,Integer). (Inherited from TListBase<T>.)

ExtractRange(T[])

Overloaded. Represents method ExtractRange(T[]). (Inherited from TCollectionBase<T>.)

First

Overloaded. Returns the first element of a sequence. (Overrides TEnumerableBase<T>.First.)

First(TPredicate<T>)

Overloaded. Returns the first element in a sequence that satisfies a specified condition. (Inherited from TEnumerableBase<T>.)

FirstOrDefault

Overloaded. Returns the first element of a sequence, or a default value if the sequence contains no elements. (Inherited from TEnumerableBase<T>.)

FirstOrDefault(T)

Overloaded. Returns the first element of a sequence, or the specified default value if the sequence contains no elements. (Overrides TEnumerableBase<T>.FirstOrDefault(T).)

FirstOrDefault(TPredicate<T>)

Overloaded. Returns the first element of the sequence that satisfies a condition or a default value if no such element is found. (Inherited from TEnumerableBase<T>.)

FirstOrDefault(TPredicate<T>,T)

Overloaded. Returns the first element of the sequence that satisfies a condition or the specified default value if no such element is found. (Inherited from TEnumerableBase<T>.)

ForEach(TAction<T>)

Overloaded. Performs the specified action on each element of a sequence. (Inherited from TEnumerableBase<T>.)

GetCapacity

Represents method GetCapacity. (Overrides TListBase<T>.GetCapacity.)

GetComparer

Returns the specified comparer for this instance. (Inherited from TEnumerableBase<T>.)

GetCount

Represents method GetCount. (Overrides TListBase<T>.GetCount.)

GetElementType

Represents method GetElementType. (Overrides TEnumerableBase.GetElementType.)

GetEnumerator

Returns an enumerator that iterates through a collection. (Overrides TEnumerableBase.GetEnumerator.)

GetEqualityComparer

Represents method GetEqualityComparer. (Inherited from TEnumerableBase<T>.)

GetIsEmpty

Represents method GetIsEmpty. (Overrides TEnumerableBase.GetIsEmpty.)

GetIsReadOnly

Represents method GetIsReadOnly. (Inherited from TCollectionBase<T>.)

GetItem(Integer)

Represents method GetItem(Integer). (Overrides TListBase<T>.GetItem(Integer).)

GetItems

Represents method GetItems. (Inherited from TList<T>.)

GetOnChanged

Represents method GetOnChanged. (Inherited from TCollectionBase<T>.)

GetRange(Integer,Integer)

Creates a new list that contains a range of the elements in the original list. (Overrides TListBase<T>.GetRange(Integer,Integer).)

Grow(Integer)

Represents method Grow(Integer). (Inherited from TList<T>.)

IndexOf(T)

Overloaded. Determines the index of a specific item in the IList<T>. (Inherited from TListBase<T>.)

IndexOf(T,Integer)

Overloaded. Represents method IndexOf(T,Integer). (Inherited from TListBase<T>.)

IndexOf(T,Integer,Integer)

Represents method IndexOf(T,Integer,Integer). (Overrides TList<T>.IndexOf(T,Integer,Integer).)

Insert(Integer,T)

Inserts an item to the IList<T> at the specified index. (Overrides TList<T>.Insert(Integer,T).)

InsertRange(Integer,IEnumerable<T>)

Represents method InsertRange(Integer,IEnumerable<T>). (Overrides TListBase<T>.InsertRange(Integer,IEnumerable<T>).)

InsertRange(Integer,T[])

Represents method InsertRange(Integer,T[]). (Overrides TListBase<T>.InsertRange(Integer,T[]).)

Last

Overloaded. Returns the last element of a sequence. (Overrides TEnumerableBase<T>.Last.)

Last(TPredicate<T>)

Overloaded. Returns the last element of a sequence that satisfies a specified condition. (Inherited from TEnumerableBase<T>.)

LastIndexOf(T)

Overloaded. Represents method LastIndexOf(T). (Inherited from TListBase<T>.)

LastIndexOf(T,Integer)

Overloaded. Represents method LastIndexOf(T,Integer). (Inherited from TListBase<T>.)

LastIndexOf(T,Integer,Integer)

Represents method LastIndexOf(T,Integer,Integer). (Overrides TListBase<T>.LastIndexOf(T,Integer,Integer).)

LastOrDefault

Overloaded. Returns the last element of a sequence, or a default value if the sequence contains no elements. (Inherited from TEnumerableBase<T>.)

LastOrDefault(T)

Overloaded. Returns the last element of a sequence, or the specified default value if the sequence contains no elements. (Overrides TEnumerableBase<T>.LastOrDefault(T).)

LastOrDefault(TPredicate<T>)

Overloaded. Returns the last element of a sequence that satisfies a condition or a default value if no such element is found. (Inherited from TEnumerableBase<T>.)

LastOrDefault(TPredicate<T>,T)

Overloaded. Returns the last element of a sequence that satisfies a condition or the specified default value if no such element is found. (Inherited from TEnumerableBase<T>.)

Max

Overloaded. Returns the maximum value in a sequence. (Inherited from TEnumerableBase<T>.)

Max(IComparer)

Overloaded. Returns the maximum value in a sequence by using the specified IComparer<T> . (Inherited from TEnumerableBase<T>.)

Max(TComparison)

Overloaded. Represents method Max(TComparison). (Inherited from TEnumerableBase<T>.)

Max(TFunc)

Overloaded. Represents method Max(TFunc). (Inherited from TEnumerableBase<T>.)

Min

Overloaded. Returns the minimum value in a sequence. (Inherited from TEnumerableBase<T>.)

Min(IComparer)

Overloaded. Returns the minimum value in a sequence by using the specified IComparer<T> . (Inherited from TEnumerableBase<T>.)

Min(TComparison)

Overloaded. Represents method Min(TComparison). (Inherited from TEnumerableBase<T>.)

Min(TFunc)

Overloaded. Represents method Min(TFunc). (Inherited from TEnumerableBase<T>.)

Move(Integer,Integer)

Represents method Move(Integer,Integer). (Overrides TList<T>.Move(Integer,Integer).)

MoveTo(ICollection<T>)

Overloaded. Represents method MoveTo(ICollection<T>). (Inherited from TCollectionBase<T>.)

MoveTo(ICollection<T>,TPredicate<T>)

Represents method MoveTo(ICollection<T>,TPredicate<T>). (Overrides TCollectionBase<T>.MoveTo(ICollection<T>,TPredicate<T>).)

Ordered

Overloaded. Sorts the elements of a sequence in ascending order using the default comparer for their type. (Inherited from TEnumerableBase<T>.)

Ordered(IComparer)

Overloaded. Sorts the elements of a sequence in ascending order using the specified IComparer<T>. (Inherited from TEnumerableBase<T>.)

Ordered(TComparison)

Overloaded. Represents method Ordered(TComparison). (Inherited from TEnumerableBase<T>.)

QueryInterface(TGUID,Void)

Represents method QueryInterface(TGUID,Void). (Overrides TEnumerableBase.QueryInterface(TGUID,Void).)

Remove(T)

Removes the first occurrence of a specific element from the ICollection<T>. (Overrides TCollectionBase<T>.Remove(T).)

RemoveAll(TPredicate<T>)

Represents method RemoveAll(TPredicate<T>). (Overrides TCollectionBase<T>.RemoveAll(TPredicate<T>).)

RemoveRange(IEnumerable<T>)

Overloaded. Represents method RemoveRange(IEnumerable<T>). (Inherited from TCollectionBase<T>.)

RemoveRange(T[])

Overloaded. Represents method RemoveRange(T[]). (Inherited from TCollectionBase<T>.)

Reverse

Overloaded. Represents method Reverse. (Inherited from TListBase<T>.)

Reverse(Integer,Integer)

Represents method Reverse(Integer,Integer). (Overrides TListBase<T>.Reverse(Integer,Integer).)

Reversed

Inverts the order of the elements in a sequence. (Inherited from TEnumerableBase<T>.)

SetCapacity(Integer)

Represents method SetCapacity(Integer). (Overrides TListBase<T>.SetCapacity(Integer).)

SetCount(Integer)

Represents method SetCount(Integer). (Overrides TListBase<T>.SetCount(Integer).)

SetItem(Integer,T)

Represents method SetItem(Integer,T). (Overrides TList<T>.SetItem(Integer,T).)

Shuffled

Returns the sequence in a shuffled order. (Inherited from TEnumerableBase<T>.)

Single

Overloaded. Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence. (Overrides TEnumerableBase<T>.Single.)

Single(TPredicate<T>)

Overloaded. Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence. (Inherited from TEnumerableBase<T>.)

SingleOrDefault

Overloaded. Returns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence. (Inherited from TEnumerableBase<T>.)

SingleOrDefault(T)

Overloaded. Returns the only element of a sequence, or the specified default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence. (Overrides TEnumerableBase<T>.SingleOrDefault(T).)

SingleOrDefault(TPredicate<T>)

Overloaded. Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition. (Inherited from TEnumerableBase<T>.)

SingleOrDefault(TPredicate<T>,T)

Overloaded. Returns the only element of a sequence that satisfies a specified condition or the specified default value if no such element exists; this method throws an exception if more than one element satisfies the condition. (Inherited from TEnumerableBase<T>.)

Skip(Integer)

Bypasses a specified number of elements in a sequence and then returns the remaining elements. (Inherited from TEnumerableBase<T>.)

SkipWhile(TFunc)

Overloaded. Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function. (Inherited from TEnumerableBase<T>.)

SkipWhile(TPredicate<T>)

Overloaded. Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. (Inherited from TEnumerableBase<T>.)

Sort

Overloaded. Represents method Sort. (Inherited from TListBase<T>.)

Sort(IComparer)

Overloaded. Represents method Sort(IComparer). (Inherited from TListBase<T>.)

Sort(IComparer,Integer,Integer)

Represents method Sort(IComparer,Integer,Integer). (Overrides TListBase<T>.Sort(IComparer,Integer,Integer).)

Sort(TComparison)

Overloaded. Represents method Sort(TComparison). (Inherited from TListBase<T>.)

Sort(TComparison,Integer,Integer)

Overloaded. Represents method Sort(TComparison,Integer,Integer). (Inherited from TListBase<T>.)

Sum

Overloaded. Computes the sum of the sequence. (Inherited from TEnumerableBase<T>.)

Take(Integer)

Returns a specified number of contiguous elements from the start of a sequence. (Inherited from TEnumerableBase<T>.)

TakeWhile(TFunc)

Overloaded. Returns elements from a sequence as long as a specified condition is true. The element's index is used in the logic of the predicate function. (Inherited from TEnumerableBase<T>.)

TakeWhile(TPredicate<T>)

Overloaded. Returns elements from a sequence as long as a specified condition is true. (Inherited from TEnumerableBase<T>.)

ToArray

Creates a new array which is filled with the elements in the collection. (Overrides TListBase<T>.ToArray.)

TrimExcess

Represents method TrimExcess. (Inherited from TListBase<T>.)

TryGetElementAt(T,Integer)

Represents method TryGetElementAt(T,Integer). (Overrides TEnumerableBase<T>.TryGetElementAt(T,Integer).)

TryGetFirst(T)

Try getting the first element in a sequence. (Overrides TEnumerableBase<T>.TryGetFirst(T).)

TryGetFirst(T,TPredicate<T>)

Overloaded. Try getting the first element in a sequence that satisfies a specified condition. (Inherited from TEnumerableBase<T>.)

TryGetLast(T)

Try getting the last element in a sequence. (Overrides TEnumerableBase<T>.TryGetLast(T).)

TryGetLast(T,TPredicate<T>)

Overloaded. Try getting the last element in a sequence that satisfies a specified condition. (Inherited from TEnumerableBase<T>.)

TryGetSingle(T)

Try getting the only element in a sequence. (Overrides TEnumerableBase<T>.TryGetSingle(T).)

TryGetSingle(T,TPredicate<T>)

Overloaded. Try getting the only element in a sequence that satisfies a specified condition. (Inherited from TEnumerableBase<T>.)

Where(TPredicate<T>)

Filters a sequence of values based on a predicate. (Inherited from TEnumerableBase<T>.)

_AddRef

Represents method _AddRef. (Inherited from TEnumerableBase.)

_Release

Represents method _Release. (Inherited from TEnumerableBase.)

Top
Show:
 NameDescription
fComparer

Represents field fComparer. (Inherited from TEnumerableBase<T>.)

fOnChanged

Represents field fOnChanged. (Inherited from TCollectionBase<T>.)

Top