public class JsArrayIntegerImpl
extends com.google.gwt.core.client.JsArrayInteger
JsArrayInteger
Modifier | Constructor and Description |
---|---|
protected |
JsArrayIntegerImpl()
Needed for GWT injection
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all of the elements from this object.
|
int |
indexOf(int 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,
int value)
Inserts the specified element at the specified position in this object.
|
int |
lastIndexOf(int 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.
|
int |
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(int value)
value
- element to search forpublic final int indexOf(int value)
value
- element to search forpublic final void clear()
public final int remove(int index)
index
- the index of the element to be removedpublic final void insertAt(int index, int value)
index
- index at which the specified element is to be insertedvalue
- element to be insertedpublic final java.lang.String toJSON()