Interface IQueue<T>
The interface describing the operations of a FIFO queue 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 IQueue<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 queue. The front of the queue 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 SourceDequeue()
Dequeue an item from the front of the queue.
Declaration
T Dequeue()
Returns
Type | Description |
---|---|
T | The item |
Enqueue(T)
Enqueue an item at the back of the queue.
Declaration
void Enqueue(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The item |