Packageorg.servebox.commons.collection
Interfacepublic interface IList extends ICollection, IBasicObject, IIterable
ImplementorsArrayList

An ordered collection, providing precise control over where in the list each element is inserted.



Public Methods
 MethodDefined by
 Inherited
add(o:IBasicObject):Boolean
Adds the specified element to the collection.
ICollection
 Inherited
addAll(c:ICollection):Boolean
Adds the specified elements to the collection.
ICollection
  
addAllAt(i:int, c:ICollection):Boolean
Adds the specified elements to the collection at the specified index.
IList
  
addItemAt(i:int, o:IBasicObject):Boolean
Adds the specified element to the collection at the specified index.
IList
 Inherited
clear():void
Empties the collection.
ICollection
 Inherited
Indicates whether the collection contains the specified element.
ICollection
 Inherited
Indicates whether the collection contains the specified elements.
ICollection
 Inherited
equals(value:IBasicObject):Boolean
Object comparison mechanism.
IBasicObject
 Inherited
fromArray(ar:Array):void
Sets the collection content using an Array of elements.
ICollection
  
Retrieves the element of the collection at the specified index.
IList
 Inherited
hashCode():int
Returns the hashcode of the object.
IBasicObject
  
Retrieves the index of the specified element of the collection.
IList
 Inherited
isEmpty():Boolean
Indicates whether the collection contains elements.
ICollection
 Inherited
Retrieves an iterator over a set of objects.
IIterable
  
Retrieves the index of the last element of the collection.
IList
 Inherited
remove(o:IBasicObject):Boolean
Removes the specified element from the collection.
ICollection
 Inherited
Removes the specified elements from the collection.
ICollection
  
Removes the specified element from the collection at the specified index.
IList
  
Removes from the list all the elements that are not contained in the specified collection.
IList
  
setItem(i:int, o:IBasicObject):Boolean
Replaces the specified element from the collection at the specified index.
IList
 Inherited
size():int
The number of elements in the collection.
ICollection
  
subList(fromIndex:int, toIndex:int):IList
Retrieves the part of the list at a specified range( fromIndex is inclusive, toIndex is exclusive ).
IList
 Inherited
toArray():Array
Retrieves the elements of the collection into an Array instance.
ICollection
 Inherited
toString():String
Returns the string representation of the specified object.
IBasicObject
Method detail
addAllAt()method
public function addAllAt(i:int, c:ICollection):Boolean

Adds the specified elements to the collection at the specified index.

Parameters
i:int
 
c:ICollection

Returns
Boolean
addItemAt()method 
public function addItemAt(i:int, o:IBasicObject):Boolean

Adds the specified element to the collection at the specified index.

Parameters
i:int
 
o:IBasicObject

Returns
Boolean
getItemAt()method 
public function getItemAt(i:int):IBasicObject

Retrieves the element of the collection at the specified index.

Parameters
i:int

Returns
IBasicObject
indexOf()method 
public function indexOf(o:IBasicObject):int

Retrieves the index of the specified element of the collection.

Parameters
o:IBasicObject

Returns
int
lastIndexOf()method 
public function lastIndexOf(o:IBasicObject):int

Retrieves the index of the last element of the collection.

Parameters
o:IBasicObject

Returns
int
removeAt()method 
public function removeAt(i:int):IBasicObject

Removes the specified element from the collection at the specified index.

Parameters
i:int

Returns
IBasicObject
retainAll()method 
public function retainAll(c:ICollection):Boolean

Removes from the list all the elements that are not contained in the specified collection.

Parameters
c:ICollection

Returns
Booleantrue if the list has changed.
setItem()method 
public function setItem(i:int, o:IBasicObject):Boolean

Replaces the specified element from the collection at the specified index.

Parameters
i:int
 
o:IBasicObject

Returns
Boolean
subList()method 
public function subList(fromIndex:int, toIndex:int):IList

Retrieves the part of the list at a specified range( fromIndex is inclusive, toIndex is exclusive ).

Parameters
fromIndex:int
 
toIndex:int

Returns
IList