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.
|
hashCode
public 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()
ListBoolean
size
in class ListBoolean
public boolean getBoolean(int index)
ListBoolean
getBoolean
in class ListBoolean
index
- position of the element to returnpublic void setBoolean(int index, boolean value)
ListBoolean
setBoolean
in class ListBoolean
index
- position of the element to changevalue
- the new valuepublic boolean equals(Object obj)
equals
in class ListBoolean
Copyright © 2015. All rights reserved.