Class IntArrayList
java.lang.Object
io.deephaven.util.datastructures.list.IntArrayList
Limited implementation of a growable/shrinkable List-like structure that holds ints.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int value) voidclear()booleanintgetInt(int position) inthashCode()voidremoveElements(int from, int to) At this time, limited to only removing trailing elements.voidremoveInt(int position) At this time, limited to only removing the last element.voidset(int position, int value) intsize()
-
Constructor Details
-
IntArrayList
public IntArrayList()
-
-
Method Details
-
size
public int size() -
getInt
public int getInt(int position) -
set
public void set(int position, int value) -
add
public void add(int 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)
-
removeInt
public void removeInt(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()
-