Packagede.polygonal.ds
Classpublic class SListNode
InheritanceSListNode Inheritance Object
Implements LinkedListNode

A singly linked list node. Each node acts as a data container and stores a reference to the next node in the list.



Public Properties
 PropertyDefined By
  data : *
The node's data.
SListNode
  next : SListNode
The next node in the list being referenced.
SListNode
Public Methods
 MethodDefined By
  
SListNode(obj:*)
Creates a new node storing a given item.
SListNode
  
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
Property Detail
dataproperty
public var data:*

The node's data.

nextproperty 
public var next:SListNode

The next node in the list being referenced.

Constructor Detail
SListNode()Constructor
public function SListNode(obj:*)

Creates a new node storing a given item.

Parameters
obj:* — The data to store inside the node.
Method Detail
insertAfter()method
public function insertAfter(node:SListNode):void

A 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():String

Prints out a string representing the current object.

Returns
String — A string representing the current object.