套件 | mx.utils |
類別 | public class LinkedList |
繼承 | LinkedList Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 1.5 |
屬性 | 定義自 | ||
---|---|---|---|
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
head : LinkedListNode [唯讀]
Node representing head of the list. | LinkedList | ||
length : Number [唯讀]
Returns length of list. | LinkedList | ||
tail : LinkedListNode [唯讀]
Node representing tail of the list. | LinkedList |
方法 | 定義自 | ||
---|---|---|---|
Constructor. | LinkedList | ||
Searches through all nodes for the given value. | LinkedList | ||
指出物件是否有已定義的指定屬性。 | Object | ||
Inserts new node after a previously existing node. | LinkedList | ||
Inserts new node before a previously existing node. | LinkedList | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
Removes the node at the tail of the list. | LinkedList | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
Push a new node to the tail of list. | LinkedList | ||
Searches through all nodes for the given value and
removes it from the list if found. | LinkedList | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
Removes the node at the head of the list. | LinkedList | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
Push a new node to the head of list. | LinkedList | ||
會傳回指定之物件的基本值。 | Object |
head | 屬性 |
head:LinkedListNode
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Node representing head of the list.
實作
public function get head():LinkedListNode
length | 屬性 |
tail | 屬性 |
tail:LinkedListNode
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Node representing tail of the list.
實作
public function get tail():LinkedListNode
LinkedList | () | 建構函式 |
public function LinkedList()
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Constructor.
find | () | 方法 |
public function find(value:*):LinkedListNode
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Searches through all nodes for the given value.
參數
value:* — The value to find.
|
LinkedListNode — The node location.
|
insertAfter | () | 方法 |
public function insertAfter(value:*, prev:LinkedListNode):LinkedListNode
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Inserts new node after a previously existing node.
參數
value:* — Value to insert. If the value is not a LinkedListNode
one will be created.
| |
prev:LinkedListNode — The previous node to insert relative to.
|
LinkedListNode — The new node.
|
insertBefore | () | 方法 |
public function insertBefore(value:*, next:LinkedListNode):LinkedListNode
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Inserts new node before a previously existing node.
參數
value:* — Value to insert. If the value is not a LinkedListNode
one will be created.
| |
next:LinkedListNode — The node to insert relative to.
|
LinkedListNode — The new node.
|
pop | () | 方法 |
public function pop():LinkedListNode
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Removes the node at the tail of the list.
傳回值LinkedListNode — The removed node.
|
push | () | 方法 |
public function push(value:*):LinkedListNode
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Push a new node to the tail of list.
參數
value:* — The value to append.
|
LinkedListNode — The newly appended node.
|
remove | () | 方法 |
public function remove(value:*):LinkedListNode
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Searches through all nodes for the given value and removes it from the list if found.
參數
value:* — The value to find and remove.
|
LinkedListNode — The removed node, null otherwise.
|
shift | () | 方法 |
public function shift():LinkedListNode
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Removes the node at the head of the list.
傳回值LinkedListNode — The removed node.
|
unshift | () | 方法 |
public function unshift(value:*):LinkedListNode
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Push a new node to the head of list.
參數
value:* — The value to append.
|
LinkedListNode — The newly appended node.
|
Tue Jun 12 2018, 03:47 PM Z