| Language Version : | ActionScript 3.0 |
| Product Version : | Flex 4.5 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Provides a generic doubly linked list implementation.
head:LinkedListNode [read-only]
| Language Version : | ActionScript 3.0 |
| Product Version : | Flex 4.5 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Node representing head of the list.
Implementation public function get head():LinkedListNodelength:Number [read-only]
| Language Version : | ActionScript 3.0 |
| Product Version : | Flex 4.5 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Returns length of list.
Implementation public function get length():Numbertail:LinkedListNode [read-only]
| Language Version : | ActionScript 3.0 |
| Product Version : | Flex 4.5 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Node representing tail of the list.
Implementation public function get tail():LinkedListNodepublic function LinkedList()| Language Version : | ActionScript 3.0 |
| Product Version : | Flex 4.5 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Constructor.
public function find(value:*):LinkedListNode| Language Version : | ActionScript 3.0 |
| Product Version : | Flex 4.5 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Searches through all nodes for the given value.
Parameters
| value:* — The value to find.
|
Returns public function insertAfter(value:*, prev:LinkedListNode):LinkedListNode| Language Version : | ActionScript 3.0 |
| Product Version : | Flex 4.5 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Inserts new node after a previously existing node.
Parameters
| value:* — Value to insert. If the value is not a LinkedListNode
one will be created.
|
| |
| prev:LinkedListNode — The previous node to insert relative to.
|
Returns public function insertBefore(value:*, next:LinkedListNode):LinkedListNode| Language Version : | ActionScript 3.0 |
| Product Version : | Flex 4.5 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Inserts new node before a previously existing node.
Parameters
| value:* — Value to insert. If the value is not a LinkedListNode
one will be created.
|
| |
| next:LinkedListNode — The node to insert relative to.
|
Returns public function pop():LinkedListNode| Language Version : | ActionScript 3.0 |
| Product Version : | Flex 4.5 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Removes the node at the tail of the list.
Returns public function push(value:*):LinkedListNode| Language Version : | ActionScript 3.0 |
| Product Version : | Flex 4.5 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Push a new node to the tail of list.
Parameters
| value:* — The value to append.
|
Returns public function remove(value:*):LinkedListNode| Language Version : | ActionScript 3.0 |
| Product Version : | Flex 4.5 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Searches through all nodes for the given value and
removes it from the list if found.
Parameters
| value:* — The value to find and remove.
|
Returns public function shift():LinkedListNode| Language Version : | ActionScript 3.0 |
| Product Version : | Flex 4.5 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Removes the node at the head of the list.
Returns public function unshift(value:*):LinkedListNode| Language Version : | ActionScript 3.0 |
| Product Version : | Flex 4.5 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Push a new node to the head of list.
Parameters
| value:* — The value to append.
|
Returns
Wed Nov 15 2017, 09:50 AM +01:00