| Package | org.servebox.commons.collection |
| Interface | public interface IList extends ICollection, IBasicObject, IIterable |
| Implementors | ArrayList |
| Method | Defined by | ||
|---|---|---|---|
![]() |
add(o:IBasicObject):Boolean
Adds the specified element to the collection.
| ICollection | |
![]() |
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 | ||
![]() |
clear():void
Empties the collection.
| ICollection | |
![]() |
contains(o:IBasicObject):Boolean
Indicates whether the collection contains the specified element.
| ICollection | |
![]() |
containsAll(c:ICollection):Boolean
Indicates whether the collection contains the specified elements.
| ICollection | |
![]() |
equals(value:IBasicObject):Boolean
Object comparison mechanism.
| IBasicObject | |
![]() |
fromArray(ar:Array):void
Sets the collection content using an Array of elements.
| ICollection | |
|
getItemAt(i:int):IBasicObject
Retrieves the element of the collection at the specified index.
| IList | ||
![]() |
hashCode():int
Returns the hashcode of the object.
| IBasicObject | |
|
indexOf(o:IBasicObject):int
Retrieves the index of the specified element of the collection.
| IList | ||
![]() |
isEmpty():Boolean
Indicates whether the collection contains elements.
| ICollection | |
![]() |
Retrieves an iterator over a set of objects.
| IIterable | |
|
lastIndexOf(o:IBasicObject):int
Retrieves the index of the last element of the collection.
| IList | ||
![]() |
remove(o:IBasicObject):Boolean
Removes the specified element from the collection.
| ICollection | |
![]() |
removeAll(c:ICollection):Boolean
Removes the specified elements from the collection.
| ICollection | |
|
removeAt(i:int):IBasicObject
Removes the specified element from the collection at the specified index.
| IList | ||
|
retainAll(c:ICollection):Boolean
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 | ||
![]() |
size():int
The number of elements in the collection.
| ICollection | |
|
Retrieves the part of the list at a specified range(
fromIndex is inclusive, toIndex is exclusive ). | IList | ||
![]() |
toArray():Array
Retrieves the elements of the collection into an Array instance.
| ICollection | |
![]() |
toString():String
Returns the string representation of the specified object.
| IBasicObject | |
| addAllAt | () | method |
public function addAllAt(i:int, c:ICollection):BooleanAdds the specified elements to the collection at the specified index.
Parametersi:int |
|
c:ICollection |
Boolean |
| addItemAt | () | method |
public function addItemAt(i:int, o:IBasicObject):BooleanAdds the specified element to the collection at the specified index.
Parametersi:int |
|
o:IBasicObject |
Boolean |
| getItemAt | () | method |
public function getItemAt(i:int):IBasicObjectRetrieves the element of the collection at the specified index.
Parametersi:int |
IBasicObject |
| indexOf | () | method |
public function indexOf(o:IBasicObject):intRetrieves the index of the specified element of the collection.
Parameterso:IBasicObject |
int |
| lastIndexOf | () | method |
public function lastIndexOf(o:IBasicObject):intRetrieves the index of the last element of the collection.
Parameterso:IBasicObject |
int |
| removeAt | () | method |
public function removeAt(i:int):IBasicObjectRemoves the specified element from the collection at the specified index.
Parametersi:int |
IBasicObject |
| retainAll | () | method |
public function retainAll(c:ICollection):BooleanRemoves from the list all the elements that are not contained in the specified collection.
Parametersc:ICollection |
Boolean — true if the list has changed.
|
| setItem | () | method |
public function setItem(i:int, o:IBasicObject):BooleanReplaces the specified element from the collection at the specified index.
Parametersi:int |
|
o:IBasicObject |
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 ).
fromIndex:int |
|
toIndex:int |
IList |