| Package | com.addicted2flash.util |
| Interface | public interface IList extends ICollection, IDisposable |
| Subinterfaces | IListObservable |
| Implementors | AbstractArrayList, AbstractLinkedList, ArrayList, ObservableArrayList |
| Property | Defined by | ||
|---|---|---|---|
| listIterator : IListIterator
[read-only]
Returns the
IListIterator of the IList. | IList | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
add(o:*):void
Appends the specified element to the end of this list (optional operation).
| ICollection | |
![]() |
addAll(c:ICollection):void
Adds all of the elements in the specified collection to this collection (optional operation).
| ICollection | |
|
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.
| IList | ||
|
addAt(i:int, o:*):void
Inserts the specified element at the specified position in this list (optional operation).
| IList | ||
![]() |
clear():void
Removes all of the elements from this list (optional operation).
| ICollection | |
![]() |
Returns a copy of the
ICollection. | ICollection | |
![]() |
contains(o:*):Boolean
Returns true if this list contains the specified element.
| ICollection | |
![]() |
containsAll(c:ICollection):Boolean
Returns true if this collection contains all of the elements in the specified collection.
| ICollection | |
![]() |
dispose():void
free memory for garbage collection.
| IDisposable | |
![]() |
getAt(i:int):*
Returns the element at the specified position in this collection.
| ICollection | |
|
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.
| IList | ||
![]() |
isEmpty():Boolean
Returns true if this list contains no elements.
| ICollection | |
![]() |
Returns an iterator over the elements in this list.
| ICollection | |
|
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.
| IList | ||
![]() |
remove(o:*):Boolean
Removes the first occurrence in this list of the specified element (optional operation).
| ICollection | |
![]() |
removeAll(c:ICollection):Boolean
Removes a single instance of the specified element from this collection, if it is present (optional operation)
| ICollection | |
|
removeArea(fromIndex:int, toIndex:int):IList
Removes an area in the current list.
| IList | ||
|
removeAt(i:int):*
Removes the element at the specified position in this list (optional operation).
| IList | ||
|
setAt(i:int, o:*):*
Replaces the element at the specified position in this list with the specified element (optional operation).
| IList | ||
![]() |
size():int
Returns the number of elements in this list.
| ICollection | |
|
Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive.
| IList | ||
|
swap(o1:*, o2:*):Boolean
Swaps elements.
| IList | ||
|
swapAt(i1:int, i2:int):Boolean
Swaps elements at given indexes.
| IList | ||
![]() |
toArray():Array
Converts the collection into an array.
| ICollection | |
| listIterator | property |
listIterator:IListIterator [read-only]
Returns the IListIterator of the IList.
public function get listIterator():IListIterator
| 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:*):BooleanSwaps elements. This means that the first element will be tracked at the index of the second element and vice versa.
Parameterso1:* — element
|
|
o2:* — element
|
Boolean — true if elements could be swapped
|
| swapAt | () | method |
public function swapAt(i1:int, i2:int):BooleanSwaps elements at given indexes. This means that the first element will be tracked at the index of the second element and vice versa.
Parametersi1:int — index of element
|
|
i2:int — index of element
|
Boolean — true if elements could be swapped
|