FastQue

class FastQue<E>(initSize: Int)

A queue of data

Constructors

Link copied to clipboard
constructor(initSize: Int)

Properties

Link copied to clipboard
var size: Int

Functions

Link copied to clipboard
fun clear()

clears the queue size, without delete the data

Link copied to clipboard

clears the queue data and size

Link copied to clipboard

Return ture if size>0

Link copied to clipboard
fun peek(): E

get topmost value

Link copied to clipboard
fun pop(): E

pop element from the queue

Link copied to clipboard
fun push(e: E)

push element to the queue

Link copied to clipboard
fun tryPop(): E?

pop element from the queue