Class: CallbackList

CallbackList

This class represents a list for Callback.

new CallbackList()

Extends

Methods

Clears this list.

contains(callback){boolean}

Verifies whether the given item is included in this list.

Name Type Description
callback Callback

CallbackType that should be verified.

Returns:
Type Description
boolean

equals(callbackList){boolean}

Compare the specified CallbackList with this instance.

Name Type Description
callbackList CallbackList

CallbackList that should be compared.

Returns:
Type Description
boolean

Returns the item for the specified key.

Name Type Description
key string

key that should be searched for

Returns:
Type Description
*

inherited abstractgetItems(){Array}

Returns all items.

Returns:
Type Description
Array

inherited getKeys(){Array}

Returns the keys of all items.

Returns:
Type Description
Array

inherited isEmpty(){boolean}

Verifies whether the list is empty.

Returns:
Type Description
boolean

Adds the specified item to the itemList.

Name Type Description
callback Callback

Callback

putAll(callbackListOrArray)

Adds all items in the specified list to this itemList

Name Type Description
callbackListOrArray CallbackList | Array

CallbackList

Removes the item from this list for the specified key.

Name Type Description
key string

key that should be searched for

Returns the number of items that are included.

Returns:
Type Description
Number

withItems(callbackListOrArray){CallbackList}

Builder for item list.

Name Type Description
callbackListOrArray CallbackList | Array

CallbackList

Returns:
Type Description
CallbackList