Class ListDouble

java.lang.Object
org.yamcs.studio.data.vtype.ListDouble
All Implemented Interfaces:
CollectionDouble, CollectionNumber, ListNumber
Direct Known Subclasses:
ArrayDouble, SortedListView

public abstract class ListDouble extends Object implements ListNumber, CollectionDouble
An ordered collection of doubles.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static ListDouble
    Concatenates a several lists of numbers into a single list
    boolean
     
    byte
    getByte(int index)
    Returns the element at the specified position in this list casted to a byte.
    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.
    int
     
    Returns an iterator over the elements of the collection.
    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 class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

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

    size

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

    getDouble
  • Constructor Details

    • ListDouble

      public ListDouble()
  • Method Details

    • iterator

      public IteratorDouble iterator()
      Description copied from interface: CollectionNumber
      Returns an iterator over the elements of the collection.
      Specified by:
      iterator in interface CollectionDouble
      Specified by:
      iterator in interface CollectionNumber
    • getFloat

      public float getFloat(int index)
      Description copied from interface: ListNumber
      Returns the element at the specified position in this list casted to a float.
      Specified by:
      getFloat in interface ListNumber
      Parameters:
      index - position of the element to return
      Returns:
      the element at the specified position in this list
    • getLong

      public long getLong(int index)
      Description copied from interface: ListNumber
      Returns the element at the specified position in this list casted to a long.
      Specified by:
      getLong in interface ListNumber
      Parameters:
      index - position of the element to return
      Returns:
      the element at the specified position in this list
    • getInt

      public int getInt(int index)
      Description copied from interface: ListNumber
      Returns the element at the specified position in this list casted to an int.
      Specified by:
      getInt in interface ListNumber
      Parameters:
      index - position of the element to return
      Returns:
      the element at the specified position in this list
    • getShort

      public short getShort(int index)
      Description copied from interface: ListNumber
      Returns the element at the specified position in this list casted to a short.
      Specified by:
      getShort in interface ListNumber
      Parameters:
      index - position of the element to return
      Returns:
      the element at the specified position in this list
    • getByte

      public byte getByte(int index)
      Description copied from interface: ListNumber
      Returns the element at the specified position in this list casted to a byte.
      Specified by:
      getByte in interface ListNumber
      Parameters:
      index - position of the element to return
      Returns:
      the element at the specified position in this list
    • setDouble

      public void setDouble(int index, double value)
      Description copied from interface: ListNumber
      Changes the element at the specified position, casting to the internal representation.
      Specified by:
      setDouble in interface ListNumber
      Parameters:
      index - position of the element to change
      value - the new value
    • setFloat

      public void setFloat(int index, float value)
      Description copied from interface: ListNumber
      Changes the element at the specified position, casting to the internal representation.
      Specified by:
      setFloat in interface ListNumber
      Parameters:
      index - position of the element to change
      value - the new value
    • setLong

      public void setLong(int index, long value)
      Description copied from interface: ListNumber
      Changes the element at the specified position, casting to the internal representation.
      Specified by:
      setLong in interface ListNumber
      Parameters:
      index - position of the element to change
      value - the new value
    • setInt

      public void setInt(int index, int value)
      Description copied from interface: ListNumber
      Changes the element at the specified position, casting to the internal representation.
      Specified by:
      setInt in interface ListNumber
      Parameters:
      index - position of the element to change
      value - the new value
    • setShort

      public void setShort(int index, short value)
      Description copied from interface: ListNumber
      Changes the element at the specified position, casting to the internal representation.
      Specified by:
      setShort in interface ListNumber
      Parameters:
      index - position of the element to change
      value - the new value
    • setByte

      public void setByte(int index, byte value)
      Description copied from interface: ListNumber
      Changes the element at the specified position, casting to the internal representation.
      Specified by:
      setByte in interface ListNumber
      Parameters:
      index - position of the element to change
      value - the new value
    • concatenate

      public static ListDouble concatenate(ListNumber... lists)
      Concatenates a several lists of numbers into a single list
      Parameters:
      lists - the lists to concatenate
      Returns:
      the given lists concatenated together
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object