Packagesekati.collections
Interfacepublic interface IStack extends ICollection
ImplementorsArrayStack, DisplayListStack

IStack defines the stack data structure. A stack is a special collection type in which the last element added to it is the next one returned. You add elements via push & pop.



Public Properties
 PropertyDefined by
 Inheritedcount : uint
How many items exist within the collection.
ICollection
 InheritedisEmpty : Boolean
Whether or not this collection is empty.
ICollection
  top : Object
[read-only] The object at the top of our stack, which would be return and removed on a subsequent call to pop.
IStack
Public Methods
 MethodDefined by
 Inherited
clear():void
Removes all items from the collection.
ICollection
 Inherited
The iterator used to handle going through the collection.
ICollection
  
pop():Object
Remove and return the element at the top of the stack.
IStack
  
push(o:Object):void
Add an element to the bottom of the stack.
IStack
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
Method detail
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