public class IntArrayParam extends Param<int[]>
Param[Array[Int}
for Java.Constructor and Description |
---|
IntArrayParam(Params parent,
String name,
String doc) |
IntArrayParam(Params parent,
String name,
String doc,
scala.Function1<int[],Object> isValid) |
Modifier and Type | Method and Description |
---|---|
int[] |
jsonDecode(String json)
Decodes a param value from JSON.
|
String |
jsonEncode(int[] value)
Encodes a param value into JSON, which can be decoded by `jsonDecode()`.
|
ParamPair<int[]> |
w(java.util.List<Integer> value)
Creates a param pair with a `java.util.List` of values (for Java and Python).
|
public IntArrayParam(Params parent, String name, String doc, scala.Function1<int[],Object> isValid)
public IntArrayParam(Params parent, String name, String doc)
public int[] jsonDecode(String json)
Param
jsonDecode
in class Param<int[]>
public String jsonEncode(int[] value)
Param
jsonEncode
in class Param<int[]>
public ParamPair<int[]> w(java.util.List<Integer> value)