repo1.maven.org$maven2@com.google.gwt$gwt-elemental@2.5.0
repo1.maven.org$maven2@com.google.gwt$gwt-elemental@2.5.0@elemental$util$ArrayOfNumber.java
file
oh
o
[]
A lightweight array of numbers.
Returns a new array that is the concatenation of this array and
values
. This method does not mutate the current array.
Gets the value at a given index.
If an undefined or non-numeric value exists at the given index, a
type-conversion error will occur in hosted mode and unpredictable behavior
may occur in web mode.
- Parameters:
index
the index to be retrieved- Returns:
- the value at the given index
Inserts a new element into the array at the specified index.
Note: If index >= the length of the array, the element will be appended to
the end. Also if the index is negative, the element will be inserted
starting from the end of the array.
void insert(int index, double value);
Returns true if the length of the array is zero.
- Returns:
- true when length is zero
Check that the specified
index
has been initialized to a valid
value.
boolean isSet(int index);
Convert each element of the array to a String and join them with a comma
separator. The value returned from this method may vary between browsers
based on how JavaScript values are converted into strings.
Convert each element of the array to a String and join them with a comma
separator. The value returned from this method may vary between browsers
based on how JavaScript values are converted into strings.
Gets the length of the array.
Returns the last value of the array;
Remove and return the element from the end of the array.
- Returns:
- the removed value
Pushes the given number onto the end of the array.
Removes the element at the specified index.
Sets the value value at a given index.
If the index is out of bounds, the value will still be set. The array's
length will be updated to encompass the bounds implied by the added value.
- Parameters:
index
the index to be setvalue
the value to be stored
void set(int index, double value);
Reset the length of the array.
- Parameters:
length
the new length of the array
Shifts the first value off the array.
- Returns:
- the shifted value
Sorts the contents of the array in ascending order.
Removes the specified number of elements starting at index and returns the
removed elements.
Shifts a value onto the beginning of the array.
- Parameters:
value
the value to the stored