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