Interface IStack<T>
The interface describing the operations of a LIFO stack data structure.
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 IStack<T> : IDirectedCollectionValue<T>, ICollectionValue<T>, IShowable, IFormattable, IDirectedEnumerable<T>, IEnumerable<T>, IEnumerable
Type Parameters
Name | Description |
---|---|
T | The item type |
Properties
| Improve this Doc View SourceAllowsDuplicates
Declaration
bool AllowsDuplicates { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item[Int32]
Get the
index
'th element of the stack. The bottom of the stack has index 0.
Declaration
T this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type | Description |
---|---|
T |
Methods
| Improve this Doc View SourcePop()
Pop the item at the top of the stack from the stack.
Declaration
T Pop()
Returns
Type | Description |
---|---|
T | The popped item. |
Push(T)
Push an item to the top of the stack.
Declaration
void Push(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The item |