
public class JreArrayOfBoolean extends Object implements ArrayOfBoolean
| Constructor and Description |
|---|
JreArrayOfBoolean() |
| Modifier and Type | Method and Description |
|---|---|
ArrayOfBoolean |
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.
|
boolean |
get(int index)
Gets the value at a given index.
|
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. |
String |
join()
Convert each element of the array to a String and join them with a comma
separator.
|
String |
join(String separator)
Convert each element of the array to a String and join them with a comma
separator.
|
int |
length()
Gets the length of the array.
|
boolean |
peek()
Returns the last value of the array;
|
boolean |
pop()
Remove and return the element from the end of the array.
|
void |
push(boolean value)
Pushes the given boolean onto 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.
|
void |
set(int index,
boolean value)
Sets the value value at a given index.
|
void |
setLength(int length)
Reset the length of the array.
|
boolean |
shift()
Shifts the first value off the array.
|
ArrayOfBoolean |
splice(int index,
int count)
Removes the specified number of elements starting at index and returns the
removed elements.
|
void |
unshift(boolean value)
Shifts a value onto the beginning of the array.
|
public ArrayOfBoolean concat(ArrayOfBoolean values)
ArrayOfBoolean
values. This method does not mutate the current array.concat in interface ArrayOfBooleanpublic boolean contains(boolean value)
ArrayOfBooleancontains in interface ArrayOfBooleanpublic boolean get(int index)
ArrayOfBooleanget in interface ArrayOfBooleanindex - the index to be retrievedpublic int indexOf(boolean value)
ArrayOfBoolean-1 if the value is
not found.indexOf in interface ArrayOfBooleanpublic void insert(int index,
boolean value)
ArrayOfBooleaninsert in interface ArrayOfBooleanpublic boolean isEmpty()
ArrayOfBooleanisEmpty in interface ArrayOfBooleanpublic boolean isSet(int index)
ArrayOfBooleanindex has been initialized to a valid
value.isSet in interface ArrayOfBooleanpublic String join()
ArrayOfBooleanjoin in interface ArrayOfBooleanpublic String join(String separator)
ArrayOfBooleanjoin in interface ArrayOfBooleanpublic int length()
ArrayOfBooleanlength in interface ArrayOfBooleanpublic boolean peek()
ArrayOfBooleanpeek in interface ArrayOfBooleanpublic boolean pop()
ArrayOfBooleanpop in interface ArrayOfBooleanpublic void push(boolean value)
ArrayOfBooleanpush in interface ArrayOfBooleanpublic void remove(boolean value)
ArrayOfBooleanremove in interface ArrayOfBooleanpublic void removeByIndex(int index)
ArrayOfBooleanremoveByIndex in interface ArrayOfBooleanpublic void set(int index,
boolean value)
ArrayOfBooleanset in interface ArrayOfBooleanindex - the index to be setvalue - the value to be storedpublic void setLength(int length)
ArrayOfBooleansetLength in interface ArrayOfBooleanlength - the new length of the arraypublic boolean shift()
ArrayOfBooleanshift in interface ArrayOfBooleanpublic ArrayOfBoolean splice(int index, int count)
ArrayOfBooleansplice in interface ArrayOfBooleanpublic void unshift(boolean value)
ArrayOfBooleanunshift in interface ArrayOfBooleanvalue - the value to the storedCopyright © 2016. All rights reserved.