|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object _global_.Array
public class Array
An array is a special variable, whcih can hold more than one value.
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.
Map
,
String
,
Dimension
,
Offset
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |