java.lang.Object | ||
↳ | com.google.gwt.core.client.JavaScriptObject | |
↳ | com.google.gwt.core.client.JsArrayBoolean |
A simple wrapper around a homogeneous native array of boolean values.
This class may not be directly instantiated, and can only be returned from a
native method. For example,
native JsArrayBoolean getNativeArray() /*-{
return [true, false, true];
}-* /;
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the value at a given index.
| |||||||||||
Convert each element of the array to a String and join them with a comma
separator.
| |||||||||||
Convert each element of the array to a String and join them with a comma
separator.
| |||||||||||
Gets the length of the array.
| |||||||||||
Pushes the given boolean onto the end of the array.
| |||||||||||
Sets the value value at a given index.
| |||||||||||
Reset the length of the array.
| |||||||||||
Shifts the first value off the array.
| |||||||||||
Shifts a value onto the beginning of the array.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.core.client.JavaScriptObject
| |||||||||||
From class
java.lang.Object
|
Gets the value at a given index. If an undefined or non-boolean value exists at the given index, a type-conversion error will occur in Development Mode and unpredictable behavior may occur in Production Mode.
index | the index to be retrieved |
---|
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.
Pushes the given boolean onto the end of the array.
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.
index | the index to be set |
---|---|
value | the value to be stored |
Reset the length of the array.
newLength | the new length of the array |
---|
Shifts the first value off the array.
Shifts a value onto the beginning of the array.
value | the value to the stored |
---|