public final class JsArrayOfBoolean extends com.google.gwt.core.client.JsArrayBoolean implements ArrayOfBoolean
ArrayOfBoolean
.Modifier | Constructor and Description |
---|---|
protected |
JsArrayOfBoolean() |
Modifier and Type | Method and Description |
---|---|
JsArrayOfBoolean |
concat(ArrayOfBoolean values)
Returns a new array that is the concatenation of this array and
values . |
boolean |
contains(boolean value)
Indicates whether the array contains the specified value.
|
static JsArrayOfBoolean |
create()
Create a new empty instance.
|
int |
indexOf(boolean value)
Returns the index of the specified value or
-1 if the value is
not found. |
void |
insert(int index,
boolean value)
Inserts a new element into the array at the specified index.
|
boolean |
isEmpty()
Returns true if the length of the array is zero.
|
boolean |
isSet(int index)
Check that the specified
index has been initialized to a valid
value. |
boolean |
peek()
Returns the last value of the array;
|
boolean |
pop()
Remove and return the element from the end of the array.
|
void |
remove(boolean value)
Searches for the specified value in the array and removes the first
occurrence if found.
|
void |
removeByIndex(int index)
Removes the element at the specified index.
|
JsArrayOfBoolean |
splice(int index,
int count)
Removes the specified number of elements starting at index and returns the
removed elements.
|
get, join, join, length, push, set, setLength, shift, unshift
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
public static JsArrayOfBoolean create()
public JsArrayOfBoolean concat(ArrayOfBoolean values)
ArrayOfBoolean
values
. This method does not mutate the current array.concat
in interface ArrayOfBoolean
public boolean contains(boolean value)
ArrayOfBoolean
contains
in interface ArrayOfBoolean
public int indexOf(boolean value)
ArrayOfBoolean
-1
if the value is
not found.indexOf
in interface ArrayOfBoolean
public void insert(int index, boolean value)
ArrayOfBoolean
insert
in interface ArrayOfBoolean
public boolean isEmpty()
ArrayOfBoolean
isEmpty
in interface ArrayOfBoolean
public boolean isSet(int index)
ArrayOfBoolean
index
has been initialized to a valid
value.isSet
in interface ArrayOfBoolean
public boolean peek()
ArrayOfBoolean
peek
in interface ArrayOfBoolean
public boolean pop()
ArrayOfBoolean
pop
in interface ArrayOfBoolean
public void remove(boolean value)
ArrayOfBoolean
remove
in interface ArrayOfBoolean
public void removeByIndex(int index)
ArrayOfBoolean
removeByIndex
in interface ArrayOfBoolean
public JsArrayOfBoolean splice(int index, int count)
ArrayOfBoolean
splice
in interface ArrayOfBoolean
Copyright © 2016. All rights reserved.