Package csw.params.core.models
Class ArrayData<T>
- java.lang.Object
-
- csw.params.core.models.ArrayData<T>
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
public class ArrayData<T> extends java.lang.Object implements scala.Product, java.io.Serializable
A top level key for a parameter set representing an array like collection.param: data input array
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description scala.collection.mutable.ArraySeq<T>
data()
static <T> ArrayData<T>
fromArray(java.lang.Object values)
Create an ArrayData from one or more valuesstatic <T> ArrayData<T>
fromArrays(T first, java.lang.Object... rest)
Create an ArrayData from one or more valuesstatic <T> ArrayData<T>
fromArrays(T first, scala.collection.immutable.Seq<T> rest)
Create an ArrayData from one or more valuesjava.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 ArrayData holdsjava.lang.Object
values()
An Array of values this parameter holds
-
-
-
Constructor Detail
-
ArrayData
public ArrayData(scala.collection.mutable.ArraySeq<T> data)
-
-
Method Detail
-
fromArrays
public static <T> ArrayData<T> fromArrays(T first, java.lang.Object... rest)
Create an ArrayData from one or more values- Parameters:
rest
- one or more valuesfirst
- (undocumented)- Returns:
- an instance of ArrayData
-
fromArray
public static <T> ArrayData<T> fromArray(java.lang.Object values)
Create an ArrayData from one or more values- Parameters:
values
- an Array of one or more values- Returns:
- an instance of ArrayData
-
fromArrays
public static <T> ArrayData<T> fromArrays(T first, scala.collection.immutable.Seq<T> rest)
Create an ArrayData from one or more values- Parameters:
rest
- one or more valuesfirst
- (undocumented)- Returns:
- an instance of ArrayData
-
data
public scala.collection.mutable.ArraySeq<T> data()
-
values
public java.lang.Object values()
An Array of values this parameter holds- Returns:
- (undocumented)
-
jValues
public 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 ArrayData holds- Overrides:
toString
in classjava.lang.Object
- Returns:
- (undocumented)
-
-