com.apamax.containers
Event Stack


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

Remove all of the values in the stack.
 com.apamax.containers.Stackstatic create()

Create an empty stack.
 booleanempty()

Return true if the stack is empty.
 anypeekTop()

Return the top value from the stack without removing it.
 anypop()

Remove and return the top value from the stack.
 voidpush(any val)

Push a value onto the top of the stack.
 integersize()

Return the number of values in the stack.
 
Action detail

clear

void clear()
Remove all of the values in the stack.

create

com.apamax.containers.Stack static create()
Create an empty stack.

empty

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

peekTop

any peekTop()
Return the top value from the stack without removing it.

pop

any pop()
Remove and return the top value from the stack.

push

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

size

integer size()
Return the number of values in the stack.