Class IVStringArray

java.lang.Object
org.yamcs.studio.data.vtype.IVMetadata
org.yamcs.studio.data.vtype.IVStringArray
All Implemented Interfaces:
Alarm, Array, Time, VStringArray, VType

public class IVStringArray extends IVMetadata implements VStringArray
  • Constructor Details

  • Method Details

    • getData

      public List<String> getData()
      Description copied from interface: Array
      Return the object containing the array data.

      This method will either return a List or a ListNumber depending of the array type. A collection is returned, instead of an array, so that the type implementation can be immutable or can at least try to prevent modifications. ListNumber has also several advantages over the Java arrays, including the ability to iterate the list regardless of numeric type.

      If a numeric array is actually needed, refer to CollectionNumbers.

      Specified by:
      getData in interface Array
      Specified by:
      getData in interface VStringArray
      Returns:
      the array data
    • getSizes

      public ListInt getSizes()
      Description copied from interface: Array
      The shape of the multidimensional array.

      The size of the returned list will be the number of the dimension of the array. Each number represents the size of each dimension. The total number of elements in the array is therefore the product of all the numbers in the list returned.

      Specified by:
      getSizes in interface Array
      Returns:
      the dimension sizes
    • toString

      public String toString()
      Overrides:
      toString in class Object