Queue
Constructor Summary
| Public Constructor | ||
| public |
|
|
Method Summary
| Public Methods | ||
| public |
add(a: T) The method add to push element into the queue |
|
| public |
The method to check if queue is empty or not |
|
| public |
poll(): * The method pop which return the element poped out of the queue |
|
| public |
reverse(): * This function Reverses a Queue |
|
| public |
The method to return size of the queue |
|
| public |
values(): * This function return the values of the queue |
|
Public Constructors
public constructor() source
Public Methods
public add(a: T) source
The method add to push element into the queue
Params:
| Name | Type | Attribute | Description |
| a | T |
