Package csw.params.core.models
Class MatrixData<T>
- java.lang.Object
-
- csw.params.core.models.MatrixData<T>
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
public class MatrixData<T> extends java.lang.Object implements scala.Product, java.io.Serializable
A top level key for a parameter set representing an matrix like collection.param: data input array of array
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MatrixData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
apply(int row, int col)
Returns a value stored at position represented by [row][col]scala.collection.mutable.ArraySeq<scala.collection.mutable.ArraySeq<T>>
data()
static <T> MatrixData<T>
fromArrays(java.lang.Object[] values)
Create a MatrixData from one or more arrays of Array[T]static <T> MatrixData<T>
fromArrays(java.lang.Object first, java.lang.Object... rest)
Create a MatrixData from Array[T]static <T> MatrixData<T>
fromArrays(java.lang.Object first, scala.collection.immutable.Seq<java.lang.Object> rest)
Create a MatrixData from Array[T]java.util.List<java.util.List<T>>
jValues()
A Java helper that returns an Array of values this parameter holdsjava.lang.String
toString()
A comma separated string representation of all values this MatrixData holdsjava.lang.Object[]
values()
-
-
-
Method Detail
-
fromArrays
public static <T> MatrixData<T> fromArrays(java.lang.Object first, java.lang.Object... rest)
Create a MatrixData from Array[T]- Parameters:
rest
- one or more arraysfirst
- (undocumented)- Returns:
- an instance of MatrixData
-
fromArrays
public static <T> MatrixData<T> fromArrays(java.lang.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(java.lang.Object first, scala.collection.immutable.Seq<java.lang.Object> rest)
Create a MatrixData from Array[T]- Parameters:
rest
- one or more arraysfirst
- (undocumented)- Returns:
- an instance of MatrixData
-
data
public scala.collection.mutable.ArraySeq<scala.collection.mutable.ArraySeq<T>> data()
-
values
public java.lang.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 java.util.List<java.util.List<T>> jValues()
A Java helper that returns an Array of values this parameter holds- Returns:
- (undocumented)
-
toString
public java.lang.String toString()
A comma separated string representation of all values this MatrixData holds- Overrides:
toString
in classjava.lang.Object
- Returns:
- (undocumented)
-
-