Package csw.params.core.models
Class MatrixData<T>
java.lang.Object
csw.params.core.models.MatrixData<T>
- All Implemented Interfaces:
Serializable
,scala.Equals
,scala.Product
A top level key for a parameter set representing an matrix like collection.
param: data input array of array
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(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
(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]jValues()
A Java helper that returns an Array of values this parameter holdstoString()
A comma separated string representation of all values this MatrixData holdsObject[]
values()
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
Create a MatrixData from Array[T]- Parameters:
rest
- one or more arraysfirst
- (undocumented)- Returns:
- an instance of MatrixData
-
fromArrays
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 arraysfirst
- (undocumented)- Returns:
- an instance of MatrixData
-
data
-
values
-
apply
Returns a value stored at position represented by [row][col]- Parameters:
row
- (undocumented)col
- (undocumented)- Returns:
- a value represented by T
-
jValues
A Java helper that returns an Array of values this parameter holds- Returns:
- (undocumented)
-
toString
A comma separated string representation of all values this MatrixData holds
-