public class JsArrayObjectImpl extends com.google.gwt.core.client.JsArray<GenericJavaScriptObject>
JsArray
Modifier | Constructor and Description |
---|---|
protected |
JsArrayObjectImpl()
Needed for GWT injection
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all of the elements from this object.
|
int |
indexOf(java.lang.Object value)
Returns the index of the first occurrence of the specified element in this object, or -1 if this object does not contain the element.
|
void |
insertAt(int index,
GenericJavaScriptObject value)
Inserts the specified element at the specified position in this object.
|
int |
lastIndexOf(java.lang.Object value)
Returns the index of the last occurrence of the specified element in this object, or -1 if this object does not contain the element.
|
GenericJavaScriptObject |
remove(int index)
Removes the element at the specified position in this object.
|
java.lang.String |
toJSON()
Returns a JSON representation of this object.
|
get, join, join, length, push, set, setLength, shift, unshift
public final int lastIndexOf(java.lang.Object value)
value
- element to search forpublic final int indexOf(java.lang.Object value)
value
- element to search forpublic final void clear()
public final GenericJavaScriptObject remove(int index)
index
- the index of the element to be removedpublic final void insertAt(int index, GenericJavaScriptObject value)
index
- index at which the specified element is to be insertedvalue
- element to be insertedpublic final java.lang.String toJSON()