Package | sekati.collections |
Interface | public interface IStack extends ICollection |
Implementors | ArrayStack, DisplayListStack |
Property | Defined by | ||
---|---|---|---|
count : uint
How many items exist within the collection.
| ICollection | ||
isEmpty : 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 |
Method | Defined by | ||
---|---|---|---|
clear():void
Removes all items from the collection.
| ICollection | ||
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 |
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
pop | () | method |
public function pop():Object
Remove and return the element at the top of the stack.
ReturnsObject |
push | () | method |
public function push(o:Object):void
Add an element to the bottom of the stack.
Parameterso:Object |