Class ShortArrayList

java.lang.Object
io.deephaven.util.datastructures.list.ShortArrayList

public class ShortArrayList extends Object
Limited implementation of a growable/shrinkable List-like structure that holds shorts.
  • Constructor Details

    • ShortArrayList

      public ShortArrayList()
  • Method Details

    • size

      public int size()
    • getShort

      public short getShort(int position)
    • set

      public void set(int position, short value)
    • add

      public void add(short 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)
    • removeShort

      public void removeShort(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

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object