Class CharArrayList
java.lang.Object
io.deephaven.util.datastructures.list.CharArrayList
Limited implementation of a growable/shrinkable List-like structure that holds chars.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(char value) voidclear()booleanchargetChar(int position) inthashCode()voidremoveChar(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, char value) intsize()
-
Constructor Details
-
CharArrayList
public CharArrayList()
-
-
Method Details
-
size
public int size() -
getChar
public char getChar(int position) -
set
public void set(int position, char value) -
add
public void add(char 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)
-
removeChar
public void removeChar(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()
-