public final class ArrayBoolean extends ListBoolean implements Serializable
boolean[] into a ListBoolean.| Constructor and Description |
|---|
ArrayBoolean(boolean... array)
A new read-only
ArrayBoolean that wraps around the given array. |
ArrayBoolean(boolean[] array,
boolean readOnly)
A new
ArrayBoolean that wraps around the given array. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getBoolean(int index)
Returns the element at the specified position in this list.
|
void |
setBoolean(int index,
boolean value)
Changes the element at the specified position.
|
int |
size()
Returns the number of elements in the collection.
|
hashCodepublic ArrayBoolean(boolean... array)
ArrayBoolean that wraps around the given array.array - an arraypublic ArrayBoolean(boolean[] array,
boolean readOnly)
ArrayBoolean that wraps around the given array.array - an arrayreadOnly - if false the wrapper allows writes to the arraypublic final int size()
ListBooleansize in class ListBooleanpublic boolean getBoolean(int index)
ListBooleangetBoolean in class ListBooleanindex - position of the element to returnpublic void setBoolean(int index,
boolean value)
ListBooleansetBoolean in class ListBooleanindex - position of the element to changevalue - the new valuepublic boolean equals(Object obj)
equals in class ListBooleanCopyright © 2015. All rights reserved.