Packageorg.servebox.commons.collection
Interfacepublic interface ICollection extends IBasicObject, IIterable
SubinterfacesIList, ISet
ImplementorsAbstractCollection

The root interface in the collection hierarchy. A collection is a group of elements. Some collections allow duplicate elements and others do not. Some are ordered and others unordered.



Public Methods
 MethodDefined 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
  
clear():void
Empties the collection.
ICollection
  
Indicates whether the collection contains the specified element.
ICollection
  
Indicates whether the collection contains the specified elements.
ICollection
 Inherited
equals(value:IBasicObject):Boolean
Object comparison mechanism.
IBasicObject
  
fromArray(ar:Array):void
Sets the collection content using an Array of elements.
ICollection
 Inherited
hashCode():int
Returns the hashcode of the object.
IBasicObject
  
isEmpty():Boolean
Indicates whether the collection contains elements.
ICollection
 Inherited
Retrieves an iterator over a set of objects.
IIterable
  
remove(o:IBasicObject):Boolean
Removes the specified element from the collection.
ICollection
  
Removes the specified elements from the collection.
ICollection
  
size():int
The number of elements in the collection.
ICollection
  
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
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
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
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