TObjectStack<T> Class
Represents type TObjectStack<T>
.
Spring.TInterfacedObjectEx
Spring.Collections.Base.TEnumerableBase
Spring.Collections.Base.TEnumerableBase<T>
Spring.Collections.Stacks.TStack<T>
Spring.Collections.Stacks.TObjectStack<T>
type TObjectStack<T: class> = class(TStack<T>, ICollectionOwnership) end;
Type Parameters
- T
The TObjectStack<T> type exposes the following members.
Name | Description | |
---|---|---|
Create | Initializes a new instance of the TObjectStack<T> class. (Overrides TStack<T>.Create.) | |
Create(Boolean) | Overloaded. Initializes a new instance of the TObjectStack<T> class. | |
Create(IComparer) | Overloaded. Initializes a new instance of the TEnumerableBase<T> class. (Inherited from TEnumerableBase<T>.) | |
Create(IComparer,Boolean) | Overloaded. Initializes a new instance of the TObjectStack<T> class. | |
Create(IEnumerable<T>) | ||
Create(TComparison) | Overloaded. Initializes a new instance of the TEnumerableBase<T> class. (Inherited from TEnumerableBase<T>.) | |
Create(T[]) |
Name | Description | |
---|---|---|
Capacity | Represents property | |
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 countable. (Inherited from TEnumerableBase.) | |
ElementType | Returns the type of the elements in the sequence. (Inherited from TEnumerableBase.) | |
EqualityComparer | Represents property | |
IsEmpty | Determines whether a countable contains no elements. (Inherited from TEnumerableBase.) | |
OnChanged | Represents property | |
OwnsObjects | Represents property | |
RefCount | Represents property |
Name | Description | |
---|---|---|
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 | |
Changed(T,TCollectionChangedAction) | Represents method | |
Clear | Removes all elements from the stack. (Inherited from TStack<T>.) | |
Concat(IEnumerable<T>) | Represents method | |
Contains(T) | Overloaded. Determines whether a sequence contains a specified element by using the default equality comparer. (Inherited from TEnumerableBase<T>.) | |
Contains(T,IEqualityComparer) | Overloaded. Determines whether a sequence contains a specified element by using a specified IEqualityComparer<T>. (Inherited from TEnumerableBase<T>.) | |
Contains(T,TEqualityComparison) | Overloaded. Represents method | |
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>.) | |
EqualsTo(IEnumerable<T>) | Overloaded. Represents method | |
EqualsTo(IEnumerable<T>,IEqualityComparer) | Overloaded. Represents method | |
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>.) | |
Extract | Removes and returns the element at the top of the stack without considering ownership. (Inherited from TStack<T>.) | |
First | Overloaded. Returns the first element of a sequence. (Inherited from TEnumerableBase<T>.) | |
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. (Inherited from TEnumerableBase<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 | |
GetComparer | Returns the specified comparer for this instance. (Inherited from TEnumerableBase<T>.) | |
GetCount | Represents method | |
GetElementType | Represents method | |
GetEnumerator | Returns an enumerator that iterates through the collection. (Overrides TEnumerableBase<T>.GetEnumerator.) | |
GetEqualityComparer | Represents method | |
GetIsEmpty | Represents method | |
GetOnChanged | Represents method | |
GetOwnsObjects | Represents method | |
Last | Overloaded. Returns the last element of a sequence. (Inherited from TEnumerableBase<T>.) | |
Last(TPredicate<T>) | Overloaded. Returns the last element of a sequence that satisfies a specified condition. (Inherited from TEnumerableBase<T>.) | |
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. (Inherited from TEnumerableBase<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(TFunc) | Overloaded. Represents method | |
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(TFunc) | Overloaded. Represents method | |
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 | |
Peek | Returns the element at the top of the stack without removing it. (Inherited from TStack<T>.) | |
PeekOrDefault | Returns the element at the top of the stack without removing it. Returns Default(T) if the stack is empty. (Inherited from TStack<T>.) | |
Pop | Removes and returns the element at the top of the stack. (Inherited from TStack<T>.) | |
PopInternal(TCollectionChangedAction) | Represents method | |
Push(T) | Inserts an element at the top of the stack. (Inherited from TStack<T>.) | |
QueryInterface(TGUID,Void) | Represents method | |
Reversed | Inverts the order of the elements in a sequence. (Inherited from TEnumerableBase<T>.) | |
SetCapacity(Integer) | Represents method | |
SetOwnsObjects(Boolean) | Represents method | |
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. (Inherited from TEnumerableBase<T>.) | |
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. (Inherited from TEnumerableBase<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>.) | |
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. (Inherited from TEnumerableBase<T>.) | |
TrimExcess | Represents method | |
TryExtract(T) | Attempts to remove and return the element at the top of the stack without considering ownership. | |
TryGetElementAt(T,Integer) | Represents method | |
TryGetFirst(T) | Overloaded. Try getting the first element in a sequence. (Inherited from TEnumerableBase<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) | Overloaded. Try getting the last element in a sequence. (Inherited from TEnumerableBase<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) | Overloaded. Try getting the only element in a sequence. (Inherited from TEnumerableBase<T>.) | |
TryGetSingle(T,TPredicate<T>) | Overloaded. Try getting the only element in a sequence that satisfies a specified condition. (Inherited from TEnumerableBase<T>.) | |
TryPeek(T) | Attempts to return an element from the top of the stack without removing it. (Inherited from TStack<T>.) | |
TryPop(T) | Attempts to remove and return the element at the top of the stack. (Inherited from TStack<T>.) | |
Where(TPredicate<T>) | Filters a sequence of values based on a predicate. (Inherited from TEnumerableBase<T>.) | |
_AddRef | Represents method | |
_Release | Represents method |
Name | Description | |
---|---|---|
fComparer | Represents field | |
fOwnsObjects | Represents field |