| Package | com.addicted2flash.util |
| Class | public class AbstractLinkedList |
| Inheritance | AbstractLinkedList AbstractLinkedCollection |
| Implements | IList |
| Subclasses | LinkedList |
| Property | Defined by | ||
|---|---|---|---|
![]() | firstNode : LinkedNode
return first
LinkedNode. | AbstractLinkedCollection | |
![]() | lastNode : LinkedNode
return last
LinkedNode. | AbstractLinkedCollection | |
| listIterator : IListIterator
[read-only]
Returns the
IListIterator of the IList. | AbstractLinkedList | ||
| Method | Defined by | ||
|---|---|---|---|
|
Create a new
AbstractLinkedList . | AbstractLinkedList | ||
![]() |
add(o:*):void
Appends the specified element to the end of this list (optional operation).
| AbstractLinkedCollection | |
![]() |
addAll(c:ICollection):void
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 | ||
![]() |
clear():void
Removes all of the elements from this list (optional operation).
| AbstractLinkedCollection | |
![]() |
Returns a copy of the
ICollection. | AbstractLinkedCollection | |
![]() |
contains(o:*):Boolean
Returns true if this list contains the specified element.
| AbstractLinkedCollection | |
![]() |
containsAll(c:ICollection):Boolean
Returns true if this collection contains all of the elements in the specified collection.
| AbstractLinkedCollection | |
![]() |
dispose():void
free memory for garbage collection.
| AbstractLinkedCollection | |
![]() |
getAt(i:int):*
Returns the element at the specified position in this collection.
| AbstractLinkedCollection | |
![]() |
getNodeAt(i:int):LinkedNode
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 | ||
![]() |
isEmpty():Boolean
Returns true if this list contains no elements.
| AbstractLinkedCollection | |
![]() |
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 | ||
![]() |
remove(o:*):Boolean
Removes the first occurrence in this list of the specified element (optional operation).
| AbstractLinkedCollection | |
![]() |
removeAll(c:ICollection):Boolean
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 | ||
![]() |
removeNode(n:LinkedNode):void
remove
LinkedNode. | AbstractLinkedCollection | |
|
setAt(i:int, o:*):*
Replaces the element at the specified position in this list with the specified element (optional operation).
| AbstractLinkedList | ||
![]() |
size():int
Returns the number of elements in this list.
| AbstractLinkedCollection | |
|
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 | ||
![]() |
toArray():Array
Converts the collection into an array.
| AbstractLinkedCollection | |
| listIterator | property |
listIterator:IListIterator [read-only]
Returns the IListIterator of the IList.
public function get listIterator():IListIterator
| AbstractLinkedList | () | constructor |
public function AbstractLinkedList()
Create a new AbstractLinkedList .
| addAllAt | () | method |
public function addAllAt(i:int, c:ICollection):voidAdds all of the elements in the specified collection to this collection at a specified position in this list.
Parametersi:int — index
|
|
c:ICollection — ICollection
|
| addAt | () | method |
public function addAt(i:int, o:*):voidInserts the specified element at the specified position in this list (optional operation).
Parametersi:int — index
|
|
o:* |
| indexOf | () | method |
public function indexOf(o:*):intReturns the index in this list of the first occurrence of the specified element, or -1 if this list does not contain this element.
Parameterso:* |
int — index
|
| lastIndexOf | () | method |
public function lastIndexOf(o:*):intReturns the index in this list of the last occurrence of the specified element, or -1 if this list does not contain this element.
Parameterso:* |
int — index
|
| removeArea | () | method |
public function removeArea(fromIndex:int, toIndex:int):IListRemoves an area in the current list.
ParametersfromIndex:int — low endpoint (including) of the list
|
|
toIndex:int — high endpoint (excluding) of the list
|
IList —
the removed area
|
| removeAt | () | method |
public function removeAt(i:int):*Removes the element at the specified position in this list (optional operation).
Parametersi:int — index
|
* — 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).
Parametersi:int — index
|
|
o:* |
* — the replaced object
|
| subList | () | method |
public function subList(fromIndex:int, toIndex:int):IListReturns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive. (If toIndex >= fromIndex, the returned list is empty.)
ParametersfromIndex:int — low endpoint (including) of the subList
|
|
toIndex:int — high endpoint (excluding) of the subList
|
IList —
a view of the specified range within this list
|
| swap | () | method |
public function swap(o1:*, o2:*):BooleanParameters
o1:* |
|
o2:* |
Boolean |
| swapAt | () | method |
public function swapAt(i1:int, i2:int):BooleanParameters
i1:int |
|
i2:int |
Boolean |