Class DoubleArrayList
java.lang.Object
io.deephaven.util.datastructures.list.DoubleArrayList
Limited implementation of a growable/shrinkable List-like structure that holds doubles.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(double value) voidclear()booleandoublegetDouble(int position) inthashCode()voidremoveDouble(int position) At this time, limited to only removing the last element.voidremoveElements(int from, int to) At this time, limited to only removing trailing elements.voidset(int position, double value) intsize()
-
Constructor Details
-
DoubleArrayList
public DoubleArrayList()
-
-
Method Details
-
size
public int size() -
getDouble
public double getDouble(int position) -
set
public void set(int position, double value) -
add
public void add(double value) -
removeElements
public void removeElements(int from, int to) At this time, limited to only removing trailing elements.- Parameters:
from- the start position (inclusive)to- the end position (exclusive)
-
removeDouble
public void removeDouble(int position) At this time, limited to only removing the last element.- Parameters:
position- the position of the element to remove
-
clear
public void clear() -
equals
-
hashCode
public int hashCode()
-