A stack of elements.

This class is generic, which means one type is generated for each type parameter T on static targets. For example:

The generated name is an implementation detail and should not be relied upon.

See also:

Constructor

new()

Creates a new empty GenericStack.

Variables

Methods

inlineadd(item:T):Void

Pushes element item onto the stack.

inlinepop():Null<T>

Returns the topmost stack element and removes it.

If the stack is empty, null is returned.

inlineisEmpty():Bool

Tells if the stack is empty.