| Package | sekati.collections |
| Class | public class ArrayStack |
| Inheritance | ArrayStack ArrayCollection |
| Implements | IStack |
| Property | Defined by | ||
|---|---|---|---|
![]() | array : Array
Return the collection array data
| ArrayCollection | |
![]() | count : uint
How many items exist within the collection.
| ArrayCollection | |
![]() | isEmpty : 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
ArrayStack(array:Array = null)
ArrayStack Constructor creates a new
ArrayStack. | ArrayStack | ||
![]() |
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 | ||
| top | property |
top:Object [read-only]
The object at the top of our stack, which would be return and removed on a
subsequent call to pop.
public function get top():Object
| 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.
array:Array (default = null) |
| 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.
IIterator |
| pop | () | method |
public function pop():ObjectRemove and return the element at the top of the stack.
ReturnsObject |
| push | () | method |
public function push(o:Object):voidAdd an element to the bottom of the stack.
Parameterso:Object |