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