Class ListInt

java.lang.Object
org.yamcs.studio.data.vtype.ListInt
All Implemented Interfaces:
CollectionInt, CollectionNumber, ListNumber
Direct Known Subclasses:
ArrayInt, BufferInt

public abstract class ListInt extends Object implements ListNumber, CollectionInt
An ordered collection of ints.
  • 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.
    float
    getFloat(int index)
    Returns the element at the specified position in this list casted to a float.
    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

    getInt
  • Constructor Details

    • ListInt

      public ListInt()
  • Method Details

    • iterator

      public IteratorInt iterator()
      Description copied from interface: CollectionNumber
      Returns an iterator over the elements of the collection.
      Specified by:
      iterator in interface CollectionInt
      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
    • 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
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object