Class MatrixData<T>

java.lang.Object
csw.params.core.models.MatrixData<T>
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product

public class MatrixData<T> extends Object implements scala.Product, Serializable
A top level key for a parameter set representing an matrix like collection.

param: data input array of array

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(int row, int col)
    Returns a value stored at position represented by [row][col]
    scala.collection.mutable.ArraySeq<scala.collection.mutable.ArraySeq<T>>
     
    static <T> MatrixData<T>
    fromArrays(Object[] values)
    Create a MatrixData from one or more arrays of Array[T]
    static <T> MatrixData<T>
    fromArrays(Object first, Object... rest)
    Create a MatrixData from Array[T]
    static <T> MatrixData<T>
    fromArrays(Object first, scala.collection.immutable.Seq<Object> rest)
    Create a MatrixData from Array[T]
    A Java helper that returns an Array of values this parameter holds
    A comma separated string representation of all values this MatrixData holds
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface scala.Equals

    canEqual, equals

    Methods inherited from interface scala.Product

    productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
  • Constructor Details

    • MatrixData

      public MatrixData()
  • Method Details

    • fromArrays

      public static <T> MatrixData<T> fromArrays(Object first, Object... rest)
      Create a MatrixData from Array[T]

      Parameters:
      rest - one or more arrays
      first - (undocumented)
      Returns:
      an instance of MatrixData
    • fromArrays

      public static <T> MatrixData<T> fromArrays(Object[] values)
      Create a MatrixData from one or more arrays of Array[T]

      Parameters:
      values - one or more arrays
      Returns:
      an instance of MatrixData
    • fromArrays

      public static <T> MatrixData<T> fromArrays(Object first, scala.collection.immutable.Seq<Object> rest)
      Create a MatrixData from Array[T]

      Parameters:
      rest - one or more arrays
      first - (undocumented)
      Returns:
      an instance of MatrixData
    • data

      public scala.collection.mutable.ArraySeq<scala.collection.mutable.ArraySeq<T>> data()
    • values

      public Object[] values()
    • apply

      public T apply(int row, int col)
      Returns a value stored at position represented by [row][col]

      Parameters:
      row - (undocumented)
      col - (undocumented)
      Returns:
      a value represented by T
    • jValues

      public List<List<T>> jValues()
      A Java helper that returns an Array of values this parameter holds
      Returns:
      (undocumented)
    • toString

      public String toString()
      A comma separated string representation of all values this MatrixData holds
      Overrides:
      toString in class Object
      Returns:
      (undocumented)