Packagecom.addicted2flash.util
Classpublic class AbstractLinkedList
InheritanceAbstractLinkedList Inheritance AbstractLinkedCollection
ImplementsIList
SubclassesLinkedList

This class provides a skeletal implementation of the IList interface for sequential data-structures to minimize the effort required to implement this interface.



Public Properties
 PropertyDefined by
 InheritedfirstNode : LinkedNode
return first LinkedNode.
AbstractLinkedCollection
 InheritedlastNode : LinkedNode
return last LinkedNode.
AbstractLinkedCollection
  listIterator : IListIterator
[read-only] Returns the IListIterator of the IList.
AbstractLinkedList
Protected Properties
 PropertyDefined by
 Inherited_first : LinkedNode
AbstractLinkedCollection
 Inherited_last : LinkedNode
AbstractLinkedCollection
 Inherited_length : int
AbstractLinkedCollection
Public Methods
 MethodDefined by
  
Create a new AbstractLinkedList .
AbstractLinkedList
 Inherited
add(o:*):void
Appends the specified element to the end of this list (optional operation).
AbstractLinkedCollection
 Inherited
Adds all of the elements in the specified collection to this collection (optional operation).
AbstractLinkedCollection
  
addAllAt(i:int, c:ICollection):void
Adds all of the elements in the specified collection to this collection at a specified position in this list.
AbstractLinkedList
  
addAt(i:int, o:*):void
Inserts the specified element at the specified position in this list (optional operation).
AbstractLinkedList
 Inherited
clear():void
Removes all of the elements from this list (optional operation).
AbstractLinkedCollection
 Inherited
Returns a copy of the ICollection.
AbstractLinkedCollection
 Inherited
contains(o:*):Boolean
Returns true if this list contains the specified element.
AbstractLinkedCollection
 Inherited
Returns true if this collection contains all of the elements in the specified collection.
AbstractLinkedCollection
 Inherited
dispose():void
free memory for garbage collection.
AbstractLinkedCollection
 Inherited
getAt(i:int):*
Returns the element at the specified position in this collection.
AbstractLinkedCollection
 Inherited
return LinkedNode at given index.
AbstractLinkedCollection
  
indexOf(o:*):int
Returns the index in this list of the first occurrence of the specified element, or -1 if this list does not contain this element.
AbstractLinkedList
 Inherited
isEmpty():Boolean
Returns true if this list contains no elements.
AbstractLinkedCollection
 Inherited
Returns an iterator over the elements in this list.
AbstractLinkedCollection
  
lastIndexOf(o:*):int
Returns the index in this list of the last occurrence of the specified element, or -1 if this list does not contain this element.
AbstractLinkedList
 Inherited
remove(o:*):Boolean
Removes the first occurrence in this list of the specified element (optional operation).
AbstractLinkedCollection
 Inherited
Removes a single instance of the specified element from this collection, if it is present (optional operation)
AbstractLinkedCollection
  
removeArea(fromIndex:int, toIndex:int):IList
Removes an area in the current list.
AbstractLinkedList
  
removeAt(i:int):*
Removes the element at the specified position in this list (optional operation).
AbstractLinkedList
 Inherited
remove LinkedNode.
AbstractLinkedCollection
  
setAt(i:int, o:*):*
Replaces the element at the specified position in this list with the specified element (optional operation).
AbstractLinkedList
 Inherited
size():int
Returns the number of elements in this list.
AbstractLinkedCollection
  
subList(fromIndex:int, toIndex:int):IList
Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive.
AbstractLinkedList
  
swap(o1:*, o2:*):Boolean
AbstractLinkedList
  
swapAt(i1:int, i2:int):Boolean
AbstractLinkedList
 Inherited
toArray():Array
Converts the collection into an array.
AbstractLinkedCollection
Property detail
listIteratorproperty
listIterator:IListIterator  [read-only]

Returns the IListIterator of the IList.

Implementation
    public function get listIterator():IListIterator
Constructor detail
AbstractLinkedList()constructor
public function AbstractLinkedList()

Create a new AbstractLinkedList .

Method detail
addAllAt()method
public function addAllAt(i:int, c:ICollection):void

Adds all of the elements in the specified collection to this collection at a specified position in this list.

Parameters
i:int — index
 
c:ICollectionICollection
addAt()method 
public function addAt(i:int, o:*):void

Inserts the specified element at the specified position in this list (optional operation).

Parameters
i:int — index
 
o:*
indexOf()method 
public function indexOf(o:*):int

Returns the index in this list of the first occurrence of the specified element, or -1 if this list does not contain this element.

Parameters
o:*

Returns
int — index
lastIndexOf()method 
public function lastIndexOf(o:*):int

Returns the index in this list of the last occurrence of the specified element, or -1 if this list does not contain this element.

Parameters
o:*

Returns
int — index
removeArea()method 
public function removeArea(fromIndex:int, toIndex:int):IList

Removes an area in the current list.

Parameters
fromIndex:int — low endpoint (including) of the list
 
toIndex:int — high endpoint (excluding) of the list

Returns
IList — the removed area
removeAt()method 
public function removeAt(i:int):*

Removes the element at the specified position in this list (optional operation).

Parameters
i:int — index

Returns
* — the removed object
setAt()method 
public function setAt(i:int, o:*):*

Replaces the element at the specified position in this list with the specified element (optional operation).

Parameters
i:int — index
 
o:*

Returns
* — the replaced object
subList()method 
public function subList(fromIndex:int, toIndex:int):IList

Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive. (If toIndex >= fromIndex, the returned list is empty.)

Parameters
fromIndex:int — low endpoint (including) of the subList
 
toIndex:int — high endpoint (excluding) of the subList

Returns
IList — a view of the specified range within this list
swap()method 
public function swap(o1:*, o2:*):Boolean

Parameters
o1:*
 
o2:*

Returns
Boolean
swapAt()method 
public function swapAt(i1:int, i2:int):Boolean

Parameters
i1:int
 
i2:int

Returns
Boolean