Interface ListNumber

All Superinterfaces:
CollectionNumber
All Known Implementing Classes:
ArrayByte, ArrayDouble, ArrayFloat, ArrayInt, ArrayLong, ArrayShort, BufferInt, ListByte, ListDouble, ListFloat, ListInt, ListLong, ListShort, SortedListView

public interface ListNumber extends CollectionNumber
An ordered collection of numeric (primitive) elements.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte
    getByte(int index)
    Returns the element at the specified position in this list casted to a byte.
    double
    getDouble(int index)
    Returns the element at the specified position in this list casted to a double.
    float
    getFloat(int index)
    Returns the element at the specified position in this list casted to a float.
    int
    getInt(int index)
    Returns the element at the specified position in this list casted to an int.
    long
    getLong(int index)
    Returns the element at the specified position in this list casted to a long.
    short
    getShort(int index)
    Returns the element at the specified position in this list casted to a short.
    void
    setByte(int index, byte value)
    Changes the element at the specified position, casting to the internal representation.
    void
    setDouble(int index, double value)
    Changes the element at the specified position, casting to the internal representation.
    void
    setFloat(int index, float value)
    Changes the element at the specified position, casting to the internal representation.
    void
    setInt(int index, int value)
    Changes the element at the specified position, casting to the internal representation.
    void
    setLong(int index, long value)
    Changes the element at the specified position, casting to the internal representation.
    void
    setShort(int index, short value)
    Changes the element at the specified position, casting to the internal representation.

    Methods inherited from interface org.yamcs.studio.data.vtype.CollectionNumber

    iterator, size
  • Method Details

    • getDouble

      double getDouble(int index)
      Returns the element at the specified position in this list casted to a double.
      Parameters:
      index - position of the element to return
      Returns:
      the element at the specified position in this list
      Throws:
      IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())
    • getFloat

      float getFloat(int index)
      Returns the element at the specified position in this list casted to a float.
      Parameters:
      index - position of the element to return
      Returns:
      the element at the specified position in this list
      Throws:
      IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())
    • getLong

      long getLong(int index)
      Returns the element at the specified position in this list casted to a long.
      Parameters:
      index - position of the element to return
      Returns:
      the element at the specified position in this list
      Throws:
      IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())
    • getInt

      int getInt(int index)
      Returns the element at the specified position in this list casted to an int.
      Parameters:
      index - position of the element to return
      Returns:
      the element at the specified position in this list
      Throws:
      IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())
    • getShort

      short getShort(int index)
      Returns the element at the specified position in this list casted to a short.
      Parameters:
      index - position of the element to return
      Returns:
      the element at the specified position in this list
      Throws:
      IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())
    • getByte

      byte getByte(int index)
      Returns the element at the specified position in this list casted to a byte.
      Parameters:
      index - position of the element to return
      Returns:
      the element at the specified position in this list
      Throws:
      IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())
    • setDouble

      void setDouble(int index, double value)
      Changes the element at the specified position, casting to the internal representation.
      Parameters:
      index - position of the element to change
      value - the new value
      Throws:
      IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())
    • setFloat

      void setFloat(int index, float value)
      Changes the element at the specified position, casting to the internal representation.
      Parameters:
      index - position of the element to change
      value - the new value
      Throws:
      IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())
    • setLong

      void setLong(int index, long value)
      Changes the element at the specified position, casting to the internal representation.
      Parameters:
      index - position of the element to change
      value - the new value
      Throws:
      IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())
    • setInt

      void setInt(int index, int value)
      Changes the element at the specified position, casting to the internal representation.
      Parameters:
      index - position of the element to change
      value - the new value
      Throws:
      IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())
    • setShort

      void setShort(int index, short value)
      Changes the element at the specified position, casting to the internal representation.
      Parameters:
      index - position of the element to change
      value - the new value
      Throws:
      IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())
    • setByte

      void setByte(int index, byte value)
      Changes the element at the specified position, casting to the internal representation.
      Parameters:
      index - position of the element to change
      value - the new value
      Throws:
      IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())