| Package | org.servebox.commons.collection |
| Class | public class AbstractCollection |
| Inheritance | AbstractCollection BasicObject |
| Implements | ICollection |
| Subclasses | AbstractSet, ArrayList |
| Property | Defined by | ||
|---|---|---|---|
| _list : Array | AbstractCollection | ||
| Method | Defined by | ||
|---|---|---|---|
|
AbstractCollection(collection:ICollection = null)
Creates a new AbstractCollection object.
| AbstractCollection | ||
|
add(o:IBasicObject):Boolean
Adds the specified element to the collection.
| AbstractCollection | ||
|
addAll(c:ICollection):Boolean
Adds the specified elements to the collection.
| AbstractCollection | ||
|
clear():void
Empties the collection.
| AbstractCollection | ||
|
contains(o:IBasicObject):Boolean
Indicates whether the collection contains the specified element.
| AbstractCollection | ||
|
containsAll(c:ICollection):Boolean
Indicates whether the collection contains the specified elements.
| AbstractCollection | ||
|
equals(o:IBasicObject):Boolean
Object comparison mechanism.
| AbstractCollection | ||
|
fromArray(ar:Array):void
Sets the collection content using an Array of elements.
| AbstractCollection | ||
![]() |
getInstanceId():uint
Generates a unique unsigned integer id at instanciation
| BasicObject | |
![]() |
hashCode():int
Returns the hashcode of the object.
| BasicObject | |
|
isEmpty():Boolean
Indicates whether the collection contains elements.
| AbstractCollection | ||
|
Retrieves an iterator over a set of objects.
| AbstractCollection | ||
|
remove(o:IBasicObject):Boolean
Removes the specified element from the collection.
| AbstractCollection | ||
|
removeAll(c:ICollection):Boolean
Removes the specified elements from the collection.
| AbstractCollection | ||
|
size():int
The number of elements in the collection.
| AbstractCollection | ||
|
toArray():Array
Retrieves the elements of the collection into an Array instance.
| AbstractCollection | ||
![]() |
toString():String
Returns the string representation of the specified object.
| BasicObject | |
| Method | Defined by | ||
|---|---|---|---|
|
objectIndex(o:IBasicObject):int
| AbstractCollection | ||
| _list | property |
protected var _list:Array
| AbstractCollection | () | constructor |
public function AbstractCollection(collection:ICollection = null)Creates a new AbstractCollection object.
Parameterscollection:ICollection (default = null) |
| add | () | method |
public function add(o:IBasicObject):BooleanAdds the specified element to the collection.
Parameterso:IBasicObject |
Boolean |
| addAll | () | method |
public function addAll(c:ICollection):BooleanAdds the specified elements to the collection.
Parametersc:ICollection |
Boolean |
| clear | () | method |
public function clear():voidEmpties the collection.
| contains | () | method |
public function contains(o:IBasicObject):BooleanIndicates whether the collection contains the specified element.
Parameterso:IBasicObject |
Boolean |
| containsAll | () | method |
public function containsAll(c:ICollection):BooleanIndicates whether the collection contains the specified elements.
Parametersc:ICollection |
Boolean |
| equals | () | method |
public override function equals(o:IBasicObject):Boolean
Object comparison mechanism. By default, the comparison is
performed using the == operator. The definition
of your own equals method is strongly encouraged.
o:IBasicObject |
Boolean |
| fromArray | () | method |
public function fromArray(ar:Array):voidSets the collection content using an Array of elements.
Parametersar:Array |
| isEmpty | () | method |
public function isEmpty():BooleanIndicates whether the collection contains elements.
ReturnsBoolean |
| iterator | () | method |
| objectIndex | () | method |
| remove | () | method |
public function remove(o:IBasicObject):BooleanRemoves the specified element from the collection.
Parameterso:IBasicObject |
Boolean |
| removeAll | () | method |
public function removeAll(c:ICollection):BooleanRemoves the specified elements from the collection.
Parametersc:ICollection |
Boolean |
| size | () | method |
public function size():intThe number of elements in the collection.
Returnsint |
| toArray | () | method |
public function toArray():ArrayRetrieves the elements of the collection into an Array instance.
ReturnsArray |