Class ListFloat

java.lang.Object
org.yamcs.studio.data.vtype.ListFloat
All Implemented Interfaces:
CollectionFloat, CollectionNumber, ListNumber
Direct Known Subclasses:
ArrayFloat

public abstract class ListFloat extends Object implements ListNumber, CollectionFloat
An ordered collection of floats.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    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.
    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, toString, wait, wait, wait

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

    size

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

    getFloat
  • Constructor Details

    • ListFloat

      public ListFloat()
  • Method Details

    • iterator

      public IteratorFloat iterator()
      Description copied from interface: CollectionNumber
      Returns an iterator over the elements of the collection.
      Specified by:
      iterator in interface CollectionFloat
      Specified by:
      iterator in interface CollectionNumber
    • getDouble

      public double getDouble(int index)
      Description copied from interface: ListNumber
      Returns the element at the specified position in this list casted to a double.
      Specified by:
      getDouble 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
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object