| Package | de.polygonal.ds |
| Class | public class DListNode |
| Inheritance | DListNode Object |
| Implements | LinkedListNode |
| Property | Defined By | ||
|---|---|---|---|
| data : *
The node's data. | DListNode | ||
| next : DListNode
The next node in the list being referenced. | DListNode | ||
| prev : DListNode
The previous node in the list being referenced. | DListNode | ||
| Method | Defined By | ||
|---|---|---|---|
DListNode(obj:*)
Creates a new node storing a given item. | DListNode | ||
insertAfter(node:DListNode):void
A helper function used solely by the DLinkedList class for inserting
a given node after this node. | DListNode | ||
insertBefore(node:DListNode):void
A helper function used solely by the DLinkedList class for inserting
this node in front of a given node. | DListNode | ||
toString():String
Prints out a string representing the current object. | DListNode | ||
unlink():void
A helper function used solely by the DLinkedList class to unlink the
node from the list. | DListNode | ||
| data | property |
public var data:*The node's data.
| next | property |
public var next:DListNodeThe next node in the list being referenced.
| prev | property |
public var prev:DListNodeThe previous node in the list being referenced.
| DListNode | () | Constructor |
public function DListNode(obj:*)Creates a new node storing a given item.
Parametersobj:* — The data to store inside the node.
|
| insertAfter | () | method |
public function insertAfter(node:DListNode):voidA helper function used solely by the DLinkedList class for inserting a given node after this node.
Parameters
node:DListNode — The node to insert.
|
| insertBefore | () | method |
public function insertBefore(node:DListNode):voidA helper function used solely by the DLinkedList class for inserting this node in front of a given node.
Parameters
node:DListNode — A doubly linked list node.
|
| toString | () | method |
public function toString():StringPrints out a string representing the current object.
ReturnsString — A string representing the current object.
|
| unlink | () | method |
public function unlink():voidA helper function used solely by the DLinkedList class to unlink the node from the list.