Class: AbstractList

AbstractList

This class represents a list.

new AbstractList()

Requires

  • module:easejs

Members

protectedcounterint

Number of Items.

protecteditems

ItemList

Methods

Clears this list.

virtualcontains(item){boolean}

Verifies whether the given item is included in this list.
Name Type Description
item * Item that should be checked.

containsKey(_key){boolean}

Verifies whether an item exists for the specified key.
Name Type Description
_key string Key that should be verified.

virtualequals(list)

Compare the specified WidgetHandleList with this instance.
Name Type Description
list * List that should be compared.

getItem(_key){*}

Returns the item for the specified key.
Name Type Description
_key string key that should be searched for

virtualgetItems(){Array}

Returns all items.

getKeys(){Array}

Returns the keys of all items.

isEmpty(){boolean}

Verifies whether the list is empty.

virtualput(item)

Adds the specified item to the itemList.
Name Type Description
item * item that shoud be added

virtualputAll(list)

Adds all items in the specified list to the itemList.
Name Type Description
list * list of items that should be added

removeItem(_key)

Removes the item from this list for the specified key.
Name Type Description
_key string key that should be searched for

size(){int}

Returns the number of items that are included.

virtualwithItems(list){*}

Builder for Item list.
Name Type Description
list *