Packagecom.addicted2flash.util
Interfacepublic interface IList extends ICollection, IDisposable
SubinterfacesIListObservable
ImplementorsAbstractArrayList, AbstractLinkedList, ArrayList, ObservableArrayList

The user of this interface has precise control over where in the list each element is inserted. The user can access elements by their integer index (position in the list), and search for elements in the list.



Public Properties
 PropertyDefined by
  listIterator : IListIterator
[read-only] Returns the IListIterator of the IList.
IList
Public Methods
 MethodDefined by
 Inherited
add(o:*):void
Appends the specified element to the end of this list (optional operation).
ICollection
 Inherited
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
 Inherited
clear():void
Removes all of the elements from this list (optional operation).
ICollection
 Inherited
Returns a copy of the ICollection.
ICollection
 Inherited
contains(o:*):Boolean
Returns true if this list contains the specified element.
ICollection
 Inherited
Returns true if this collection contains all of the elements in the specified collection.
ICollection
 Inherited
dispose():void
free memory for garbage collection.
IDisposable
 Inherited
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
 Inherited
isEmpty():Boolean
Returns true if this list contains no elements.
ICollection
 Inherited
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
 Inherited
remove(o:*):Boolean
Removes the first occurrence in this list of the specified element (optional operation).
ICollection
 Inherited
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
 Inherited
size():int
Returns the number of elements in this list.
ICollection
  
subList(fromIndex:int, toIndex:int):IList
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
 Inherited
toArray():Array
Converts the collection into an array.
ICollection
Property detail
listIteratorproperty
listIterator:IListIterator  [read-only]

Returns the IListIterator of the IList.

Implementation
    public function get listIterator():IListIterator
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

Swaps elements. This means that the first element will be tracked at the index of the second element and vice versa.

Parameters
o1:* — element
 
o2:* — element

Returns
Boolean — true if elements could be swapped
swapAt()method 
public function swapAt(i1:int, i2:int):Boolean

Swaps elements at given indexes. This means that the first element will be tracked at the index of the second element and vice versa.

Parameters
i1:int — index of element
 
i2:int — index of element

Returns
Boolean — true if elements could be swapped