public class BoolArray extends AbstractPrimitiveArray<boolean[],Boolean>
boolean
elements.modCount
Constructor and Description |
---|
BoolArray()
Constructs an extensible array of booleans, backed by a fixed-size array.
|
BoolArray(boolean[] array)
Constructs an extensible array of booleans, backed by the given fixed-size
array.
|
BoolArray(int size)
Constructs an extensible array of booleans, backed by a fixed-size array.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
Boolean element) |
boolean |
addAll(int index,
Collection<? extends Boolean> c) |
void |
addValue(boolean value) |
void |
addValue(int index,
boolean value) |
boolean |
contains(boolean value) |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
Boolean |
defaultValue() |
Boolean |
get(int index) |
boolean[] |
getArray()
Gets the fixed-size array backing this instance.
|
boolean |
getValue(int index) |
int |
indexOf(boolean value) |
int |
indexOf(Object o) |
int |
lastIndexOf(boolean value) |
int |
lastIndexOf(Object o) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removeValue(boolean value) |
Boolean |
set(int index,
Boolean element) |
void |
setArray(boolean[] array)
Sets the fixed-size array backing this instance.
|
boolean |
setValue(int index,
boolean value) |
capacity, checkBounds, clear, copyArray, delete, ensureCapacity, getMaximumGrowth, insert, remove, setMaximumGrowth, setSize, size
add, equals, hashCode, iterator, listIterator, listIterator, removeRange, subList
addAll, isEmpty, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, equals, hashCode, isEmpty, iterator, listIterator, listIterator, replaceAll, retainAll, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
public BoolArray()
public BoolArray(int size)
size
- the initial sizepublic BoolArray(boolean[] array)
array
- the array to wrappublic void addValue(boolean value)
public boolean removeValue(boolean value)
public boolean getValue(int index)
public boolean setValue(int index, boolean value)
public void addValue(int index, boolean value)
public int indexOf(boolean value)
public int lastIndexOf(boolean value)
public boolean contains(boolean value)
public boolean[] getArray()
PrimitiveArray
public void setArray(boolean[] array)
PrimitiveArray
array
- the new backing arraypublic Boolean get(int index)
public void add(int index, Boolean element)
public int indexOf(Object o)
public int lastIndexOf(Object o)
lastIndexOf
in interface List<Boolean>
lastIndexOf
in class AbstractList<Boolean>
public boolean contains(Object o)
contains
in interface Collection<Boolean>
contains
in interface List<Boolean>
contains
in class AbstractCollection<Boolean>
public boolean remove(Object o)
remove
in interface Collection<Boolean>
remove
in interface List<Boolean>
remove
in class AbstractCollection<Boolean>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<Boolean>
containsAll
in interface List<Boolean>
containsAll
in class AbstractCollection<Boolean>
public boolean addAll(int index, Collection<? extends Boolean> c)
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<Boolean>
removeAll
in interface List<Boolean>
removeAll
in class AbstractCollection<Boolean>
public Boolean defaultValue()
Copyright © 2015–2022 SciJava. All rights reserved.