Class AjxVector
Method Detail
add(obj, index, noDuplicates)
Adds a object to the vector.
addList(list)
Adds the given array.
{number}
binarySearch(valueToFind, sortFunc)
Performs a binary search.
{AjxVector}
clone()
Clones the vector.
{boolean}
contains(obj)
Checks if the vector contains an object.
{boolean}
containsLike(obj, keyFunc)
Returns true if the vector contains the given object, using the given
function to compare objects. The comparison function should return a
type for which the equality test (==) is meaningful, such as a string
or a base type.
{Array}
filter(func, context)
Returns an AjxVector with all the members of the given array for which the
filtering function returns true.
<static>
{AjxVector}
AjxVector.fromArray(list)
Creates a vector from a given array.
{Object}
get(index)
Gets the object at a given index.
{array}
getArray()
Gets an array of the vector.
{Object}
getLast()
Gets the last object in the vector.
{Object}
getNext(obj)
Gets the next object in the vector after a given object.
{Object}
getPrev(obj)
Gets the previous object in the vector before a given object.
{number}
indexOf(obj, func)
Returns the index of the obj given w/in vector
{string}
join(sep)
Joins the vector.
{number}
lastIndexOf(obj, func)
Returns the last index of the obj given w/in vector
{number}
lastIndexOfLike(obj, keyFunc)
Returns the last index of the obj given w/in vector
{AjxVector}
map(f, obj)
Return a new AjxVector which contains the results of calling f
(optionally in the context obj) for each element of this array.
{boolean}
remove(obj)
Removes the object.
removeAll()
Removes all objects from vector.
{Object}
removeAt(index)
Removes the object at the given index.
removeLast()
Removes the last object in the vector.
{Object}
replace(index, newObj)
Replaces the object at a given index.
{Object}
replaceObject(obj, newObj)
Replaces an object.
reverse()
Reverses the order of the objects in the vector.
{number}
size()
Gets the size of the vector.
some(f, obj)
Return true if the given function returns true for a member of this vector,
otherwise false.
sort(sortFunc)
Sorts the vector.
{AjxVector}
sub(f, obj)
Return a new AjxVector containing the elements from this vector
except those for which f(el) returns true. Otherwise said,
"SUBtracts" from this vector those elements for which f(el) returns true.
{string}
toString(sep, compress)
Returns a string representation of the object.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:30 GMT-0400 (EDT)
|