Skip to content

easyextensionscollections LimitedQueueT

BigMakCode edited this page Aug 5, 2024 · 1 revision

LimitedQueue<T> Public class

Description

Provides a first in-first out (FIFO) collection with a limit.

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph EasyExtensions.Collections
  EasyExtensions.Collections.LimitedQueue_1[[LimitedQueue< T >]]

  end
  subgraph System.Collections.Generic
System.Collections.Generic.Queue_1[[Queue]]
  end
System.Collections.Generic.Queue_1 --> EasyExtensions.Collections.LimitedQueue_1
Loading

Members

Methods

Public methods

Returns Name
void Enqueue(T item)

Details

Summary

Provides a first in-first out (FIFO) collection with a limit.

Generic types

Type Description Constraints
T The type of the elements contained in the queue.

Inheritance

  • Queue<T>

Constructors

LimitedQueue [1/3]

public LimitedQueue(int limit)
Arguments
Type Name Description
int limit Queue limit.
Summary

Creates a new instance of the LimitedQueue<T> class with the specified limit.

LimitedQueue [2/3]

public LimitedQueue(int limit, IEnumerable<T> collection)
Arguments
Type Name Description
int limit
IEnumerable<T> collection

LimitedQueue [3/3]

public LimitedQueue(int limit, int capacity)
Arguments
Type Name Description
int limit Queue limit.
int capacity The initial number of elements that the LimitedQueue<T> can contain.
Summary

Creates a new instance of the LimitedQueue<T> class with the specified limit and capacity.

Methods

Enqueue

public void Enqueue(T item)
Arguments
Type Name Description
T item

Generated with ModularDoc

Clone this wiki locally