Packagesekati.collections
Classpublic class ArrayStack
InheritanceArrayStack Inheritance ArrayCollection
ImplementsIStack

Array based Stack data structure.



Public Properties
 PropertyDefined by
 Inheritedarray : Array
Return the collection array data
ArrayCollection
 Inheritedcount : uint
How many items exist within the collection.
ArrayCollection
 InheritedisEmpty : Boolean
Whether or not this collection is empty.
ArrayCollection
  top : Object
[read-only] The object at the top of our stack, which would be return and removed on a subsequent call to pop.
ArrayStack
Protected Properties
 PropertyDefined by
 Inherited_array : Array
ArrayCollection
Public Methods
 MethodDefined by
  
ArrayStack(array:Array = null)
ArrayStack Constructor creates a new ArrayStack.
ArrayStack
 Inherited
clear():void
Removes all items from the collection.
ArrayCollection
  
Returns an iterate which iterates over the items as they would be returned by subsequent calls to pop.
ArrayStack
  
pop():Object
Remove and return the element at the top of the stack.
ArrayStack
  
push(o:Object):void
Add an element to the bottom of the stack.
ArrayStack
Property detail
topproperty
top:Object  [read-only]

The object at the top of our stack, which would be return and removed on a subsequent call to pop.

Implementation
    public function get top():Object
Constructor detail
ArrayStack()constructor
public function ArrayStack(array:Array = null)

ArrayStack Constructor creates a new ArrayStack. You may have it wrap an existing Array or the constructor will create an empty Array for you.

Parameters
array:Array (default = null)
Method detail
getIterator()method
public override function getIterator():IIterator

Returns an iterate which iterates over the items as they would be returned by subsequent calls to pop.

Returns
IIterator
pop()method 
public function pop():Object

Remove and return the element at the top of the stack.

Returns
Object
push()method 
public function push(o:Object):void

Add an element to the bottom of the stack.

Parameters
o:Object