Class ByteArrayList
java.lang.Object
io.deephaven.util.datastructures.list.ByteArrayList
Limited implementation of a growable/shrinkable List-like structure that holds bytes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(byte value) voidclear()booleanbytegetByte(int position) inthashCode()voidremoveByte(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, byte value) intsize()
-
Constructor Details
-
ByteArrayList
public ByteArrayList()
-
-
Method Details
-
size
public int size() -
getByte
public byte getByte(int position) -
set
public void set(int position, byte value) -
add
public void add(byte 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)
-
removeByte
public void removeByte(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()
-