public class Array
extends java.lang.Object
In additions to JavaScript Reference that JavaScript provide, ZK extends with the following methods.
To test if an object is an array, use jq.isArray(obj)
where obj can be null.
Modifier and Type | Method and Description |
---|---|
void |
$addAll(Array ary)
Adds all elements of the given array to this array.
|
Array |
$clone()
Clones this array.
|
boolean |
$contains(java.lang.Object o)
Returns true if this list contains the specified element.
|
boolean |
$equals(java.lang.Object o)
Returns whether obj is an array, the length is the same, and
each element in obj is the same as each element of this array.
|
int |
$indexOf(java.lang.Object o)
Returns the index in this list of the first occurrence of the
specified element, or -1 if this list does not contain this element.
|
boolean |
$remove(java.lang.Object o)
Removes the specified object from this array.
|
public Array $clone()
For example,
var anotherArray = ary.$clone();
public int $indexOf(java.lang.Object o)
public boolean $contains(java.lang.Object o)
public boolean $remove(java.lang.Object o)
public boolean $equals(java.lang.Object o)
For example,
[0, ["s"]].$equals([0, ["s"]]) //is true
Notice that == returns false in the above case.
public void $addAll(Array ary)
Copyright © 2005-2023 Potix Corporation. All Rights Reserved.