LinkedStack |
A stack based on a linked list. It’s basically a wrapper class for a linked list to provide LIFO-like access.
LinkedStack | A stack based on a linked list. |
Functions | |
LinkedStack | Initializes a new stack. |
peek | Indicates the top item. |
push | Pushes data onto the stack. |
pop | Pops data off the stack. |
contains | @inheritDoc |
clear | @inheritDoc |
getIterator | @inheritDoc |
Properties | |
size | @inheritDoc |
Functions | |
isEmpty | @inheritDoc |
toArray | @inheritDoc |
toString | Prints out a string representing the current object. |
dump | Prints out all elements (for debug/demo purposes). |
Initializes a new stack.
public function LinkedStack( list: DLinkedList = null )
Indicates the top item.
public function peek():*
Pushes data onto the stack.
public function push( obj: * ):void
Pops data off the stack.
public function pop():*
@inheritDoc
public function contains( obj: * ):Boolean
@inheritDoc
public function clear():void
@inheritDoc
public function getIterator():Iterator
@inheritDoc
public function get size():int
@inheritDoc
public function isEmpty():Boolean
@inheritDoc
public function toArray():Array
Prints out a string representing the current object.
public function toString():String
Prints out all elements (for debug/demo purposes).
public function dump():String