ICollection
Extends IEventEmitter.
Interface for a collection.
Constructor | Fields | Events | Methods
Constructor
ICollection()
Fields
Name |
Type |
Description |
Event manager. Inherited from IEventEmitter. |
Events
Name |
Description |
A child object was added. |
|
A child object was deleted. |
Methods
Name |
Returns |
Description |
Adds a child object to the collection. |
||
Returns iterator for the collection. |
||
Removes a child object from the collection. |
Events details
add
A child object was added.
remove
A child object was deleted.
Methods details
add
{ICollection} add(object)
Adds a child object to the collection.
Returns self-reference.
Parameters:
Parameter |
Default value |
Description |
— |
Type: Object Object being added. |
* Mandatory parameter/option.
getIterator
{IIterator} getIterator()
Returns iterator for the collection.
remove
{ICollection} remove(object)
Removes a child object from the collection.
Returns self-reference.
Parameters:
Parameter |
Default value |
Description |
— |
Type: Object Object being removed. |
* Mandatory parameter/option.
Mandatory parameter/option.