ICollection

Extends IEventEmitter.

Interface for a collection.

Constructor | Fields | Events | Methods

Constructor

ICollection()

Fields

Name

Type

Description

events

IEventManager

Event manager.

Inherited from IEventEmitter.

Events

Name

Description

add

A child object was added.

remove

A child object was deleted.

Methods

Name

Returns

Description

add(object)

ICollection

Adds a child object to the collection.

getIterator()

IIterator

Returns iterator for the collection.

remove(object)

ICollection

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

object*

—

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

object*

—

Type: Object

Object being removed.

* Mandatory parameter/option.