com.apamax.containers
Event Queue


A First-In-First-Out queue object.
Action summary
 voidclear()

Remove all the contents of the queue.
 com.apamax.containers.Queuestatic create()

Create an empty queue.
 booleanempty()

Return true if the queue is empty.
 anypeekNext()

Return the front value on the queue without removing it.
 anypop()

Remove and return the value on the front of the queue.
 voidpush(any val)

Push a value onto the back of the queue.
 integersize()

Return the number of items in the queue.
 
Action detail

clear

void clear()
Remove all the contents of the queue.

create

com.apamax.containers.Queue static create()
Create an empty queue.

empty

boolean empty()
Return true if the queue is empty.

peekNext

any peekNext()
Return the front value on the queue without removing it.

pop

any pop()
Remove and return the value on the front of the queue.

push

void push(any val)
Push a value onto the back of the queue.
Parameters:
val - The value to add to the queue.

size

integer size()
Return the number of items in the queue.