Paket | mx.utils |
Klass | public class LinkedList |
Arv | LinkedList Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Egenskap | Definieras med | ||
---|---|---|---|
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
head : LinkedListNode [skrivskyddad]
Node representing head of the list. | LinkedList | ||
length : Number [skrivskyddad]
Returns length of list. | LinkedList | ||
tail : LinkedListNode [skrivskyddad]
Node representing tail of the list. | LinkedList |
Metod | Definieras med | ||
---|---|---|---|
Constructor. | LinkedList | ||
Searches through all nodes for the given value. | LinkedList | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Inserts new node after a previously existing node. | LinkedList | ||
Inserts new node before a previously existing node. | LinkedList | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Removes the node at the tail of the list. | LinkedList | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | 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 | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Removes the node at the head of the list. | LinkedList | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Push a new node to the head of list. | LinkedList | ||
Returnerar det angivna objektets primitiva värde. | Object |
head | egenskap |
head:LinkedListNode
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Node representing head of the list.
Implementering
public function get head():LinkedListNode
length | egenskap |
tail | egenskap |
tail:LinkedListNode
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Node representing tail of the list.
Implementering
public function get tail():LinkedListNode
LinkedList | () | Konstruktor |
public function LinkedList()
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Constructor.
find | () | metod |
public function find(value:*):LinkedListNode
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Searches through all nodes for the given value.
Parametrar
value:* — The value to find.
|
LinkedListNode — The node location.
|
insertAfter | () | metod |
public function insertAfter(value:*, prev:LinkedListNode):LinkedListNode
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Inserts new node after a previously existing node.
Parametrar
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 | () | metod |
public function insertBefore(value:*, next:LinkedListNode):LinkedListNode
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Inserts new node before a previously existing node.
Parametrar
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 | () | metod |
public function pop():LinkedListNode
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Removes the node at the tail of the list.
ReturnerarLinkedListNode — The removed node.
|
push | () | metod |
public function push(value:*):LinkedListNode
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Push a new node to the tail of list.
Parametrar
value:* — The value to append.
|
LinkedListNode — The newly appended node.
|
remove | () | metod |
public function remove(value:*):LinkedListNode
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Searches through all nodes for the given value and removes it from the list if found.
Parametrar
value:* — The value to find and remove.
|
LinkedListNode — The removed node, null otherwise.
|
shift | () | metod |
public function shift():LinkedListNode
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Removes the node at the head of the list.
ReturnerarLinkedListNode — The removed node.
|
unshift | () | metod |
public function unshift(value:*):LinkedListNode
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Push a new node to the head of list.
Parametrar
value:* — The value to append.
|
LinkedListNode — The newly appended node.
|
Tue Jun 12 2018, 01:40 PM Z