Packageorg.servebox.commons.collection
Classpublic class AbstractCollection
InheritanceAbstractCollection Inheritance BasicObject
ImplementsICollection
SubclassesAbstractSet, ArrayList

Abstract implementation of the ICollection interface.



Public Properties
 PropertyDefined by
 InheritedinternalInstanceId : uint
The internal instance id of the object.
BasicObject
Protected Properties
 PropertyDefined by
  _list : Array
AbstractCollection
Public Methods
 MethodDefined 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
  
Indicates whether the collection contains the specified element.
AbstractCollection
  
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
 Inherited
Generates a unique unsigned integer id at instanciation
BasicObject
 Inherited
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
  
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
 Inherited
toString():String
Returns the string representation of the specified object.
BasicObject
Protected Methods
 MethodDefined by
  
AbstractCollection
Property detail
_listproperty
protected var _list:Array
Constructor detail
AbstractCollection()constructor
public function AbstractCollection(collection:ICollection = null)

Creates a new AbstractCollection object.

Parameters
collection:ICollection (default = null)
Method detail
add()method
public function add(o:IBasicObject):Boolean

Adds the specified element to the collection.

Parameters
o:IBasicObject

Returns
Boolean
addAll()method 
public function addAll(c:ICollection):Boolean

Adds the specified elements to the collection.

Parameters
c:ICollection

Returns
Boolean
clear()method 
public function clear():void

Empties the collection.

contains()method 
public function contains(o:IBasicObject):Boolean

Indicates whether the collection contains the specified element.

Parameters
o:IBasicObject

Returns
Boolean
containsAll()method 
public function containsAll(c:ICollection):Boolean

Indicates whether the collection contains the specified elements.

Parameters
c:ICollection

Returns
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.

Parameters
o:IBasicObject

Returns
Boolean
fromArray()method 
public function fromArray(ar:Array):void

Sets the collection content using an Array of elements.

Parameters
ar:Array
isEmpty()method 
public function isEmpty():Boolean

Indicates whether the collection contains elements.

Returns
Boolean
iterator()method 
public function iterator():IIterator

Retrieves an iterator over a set of objects.

Returns
IIterator
objectIndex()method 
protected function objectIndex(o:IBasicObject):int

Parameters
o:IBasicObject

Returns
int
remove()method 
public function remove(o:IBasicObject):Boolean

Removes the specified element from the collection.

Parameters
o:IBasicObject

Returns
Boolean
removeAll()method 
public function removeAll(c:ICollection):Boolean

Removes the specified elements from the collection.

Parameters
c:ICollection

Returns
Boolean
size()method 
public function size():int

The number of elements in the collection.

Returns
int
toArray()method 
public function toArray():Array

Retrieves the elements of the collection into an Array instance.

Returns
Array