new AttributeValueList()
Extends
Requires
- module:easejs
- module:AbstractList
- module:AttributeValue
- module:AttributeType
- module:AttributeTypeList)
Members
-
protectedcounterinteger
-
Number of items.
-
protecteditemsAttributeValueList
-
ItemList.
Methods
-
inherited clear()
-
Clears this list.
-
contains(_item){boolean}
-
Verifies whether the given item is included in the list.
Name Type Description _item
AttributeValue AttributeValue that should be verified. -
inherited containsKey(_key){boolean}
-
Verifies whether an item exists for the specified key.
Name Type Description _key
string Key that should be verified. -
equals(_list){boolean}
-
Compare the specified AttributeValueList with this instance.
Name Type Description _list
AttributeValueList AttributeValueList that should be compared. -
inherited getItem(_key){*}
-
Returns the item for the specified key.
Name Type Description _key
string key that should be searched for -
inherited virtualgetItems(){Array}
-
Returns all items.
-
inherited getKeys(){Array}
-
Returns the keys of all items.
-
getSubset(_attributeTypeList){AttributeValueList}
-
Returns only this values that matches to the given type.
Name Type Description _attributeTypeList
AttributeTypeList | Array AttributeTypes that should be returned. -
getSubsetWithoutItems(_attributeTypeList){AttributeValueList}
-
Returns a subset without the given types.
Name Type Description _attributeTypeList
AttributeTypeList | Array AttributeTypes that should not be included -
getValue(_key){*}
-
Alias for {#getItem}.
Name Type Description _key
The value key. -
getValueForAttributeType(_attributeType){AttributeValue}
-
Returns the attribute value that matches the provided attribute type.
Name Type Description _attributeType
AttributeType -
inherited isEmpty(){boolean}
-
Verifies whether the list is empty.
-
put(_attributeValue)
-
Add the specified item to this itemList.
Name Type Description _attributeValue
AttributeValue AttributeValue -
putAll(_attributeValueList)
-
Adds all items in the specified list to this. itemList
Name Type Description _attributeValueList
AttributeValueList AttributeValueList -
inherited removeItem(_key)
-
Removes the item from this list for the specified key.
Name Type Description _key
string key that should be searched for -
inherited size(){int}
-
Returns the number of items that are included.
-
withItems(_attributeValueList){AttributeValueList}
-
Builder for item list.
Name Type Description _attributeValueList
AttributeValueListst | Array AttributeValueList