Attributes | Name and Description |
---|---|
|
caplin.core.OrderedSet(Array pData, String sFieldToCompare)
|
Attributes | Name and Description |
---|---|
|
boolean
add(Object oElement, Number nIndex)
Adds an item into this set. |
|
void
addAll(Array pData)
Adds all the items in the passed array to this set. |
|
void
clear()
Clears all items from the set. |
|
boolean
contains(Object oElement)
Tests to see if an item is in this set |
|
Object
get(Number nIndex)
Gets the element at a specified index. |
|
Object
getByKey(oKey oKey)
Gets the element by a defined key |
|
Array
getContents()
Returns an Array with the same contents as the Set. |
|
boolean
remove(Object oElement)
Removes an item from this set. |
|
void
removeAll(Array pData)
Removes all the items in the passed array from this set. |
|
int
size()
Returns the number of elements contained in the set. |
►
caplin.core.OrderedSet(Array pData, String sFieldToCompare)
Array | pData | (Optional) an array whose elements are to be placed into this set. |
String | sFieldToCompare | (Optional) the field name to use when comparing objects. |
►
boolean
add(Object oElement, Number nIndex)
Adds an item into this set.
Object | oElement | the item to add. |
Number | nIndex | (Optional) the index at which the item will be added. If not included, oElement will be added to the end of the set. |
►
void
addAll(Array pData)
Adds all the items in the passed array to this set.
Array | pData | the items to add to this set. |
►
void
clear()
Clears all items from the set.
►
boolean
contains(Object oElement)
Tests to see if an item is in this set
Object | oElement | the item to test. |
►
Object
get(Number nIndex)
Gets the element at a specified index.
Number | nIndex | the index to get. |
►
Object
getByKey(oKey oKey)
Gets the element by a defined key
oKey | oKey | the key used to retrieve item. |
►
Array
getContents()
Returns an Array with the same contents as the Set.
►
boolean
remove(Object oElement)
Removes an item from this set.
Object | oElement | the item to remove. |
►
void
removeAll(Array pData)
Removes all the items in the passed array from this set.
Array | pData | the items to remove from this set. |
►
int
size()
Returns the number of elements contained in the set.