Packagecom.addicted2flash.util
Classpublic class LinkedNode

Helper class for building sequential data-structures.



Public Properties
 PropertyDefined by
  next : LinkedNode
LinkedNode
  prev : LinkedNode
LinkedNode
  value : *
LinkedNode
Public Methods
 MethodDefined by
  
LinkedNode(value:* = null, prev:LinkedNode = null, next:LinkedNode = null)
Create a new LinkedNode.
LinkedNode
  
clear instance and combine prev and next node (if existing).
LinkedNode
  
dispose():void
clear all internal dependencies.
LinkedNode
  
postAdd(node:LinkedNode):void
add a node as next node ( also handles dependencies f.e prev/next ).
LinkedNode
  
preAdd(node:LinkedNode):void
add a node as predecessor ( also handles dependencies f.e prev/next ).
LinkedNode
  
purge():void
recursive dispose.
LinkedNode
  
shiftLeft():void
shift value to the left (value of prev node and this node change).
LinkedNode
  
shiftRight():void
shift value to the left (value of next node and this node change).
LinkedNode
  
toString():String
string representation of LinkedNode.
LinkedNode
Property detail
nextproperty
public var next:LinkedNode
prevproperty 
public var prev:LinkedNode
valueproperty 
public var value:*
Constructor detail
LinkedNode()constructor
public function LinkedNode(value:* = null, prev:LinkedNode = null, next:LinkedNode = null)

Create a new LinkedNode.

Parameters
value:* (default = null) — any value
 
prev:LinkedNode (default = null) — predecessor of node
 
next:LinkedNode (default = null) — post node
Method detail
clearAndCombine()method
public function clearAndCombine():*

clear instance and combine prev and next node (if existing).

Returns
*
dispose()method 
public function dispose():void

clear all internal dependencies.

postAdd()method 
public function postAdd(node:LinkedNode):void

add a node as next node ( also handles dependencies f.e prev/next ).

Parameters
node:LinkedNode — next node
preAdd()method 
public function preAdd(node:LinkedNode):void

add a node as predecessor ( also handles dependencies f.e prev/next ).

Parameters
node:LinkedNode — predecessor
purge()method 
public function purge():void

recursive dispose.

shiftLeft()method 
public function shiftLeft():void

shift value to the left (value of prev node and this node change).

shiftRight()method 
public function shiftRight():void

shift value to the left (value of next node and this node change).

toString()method 
public function toString():String

string representation of LinkedNode.

Returns
String — String representation of LinkedNode