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
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 ParamPair<int[]> w(java.util.List<Integer> value)
List
of values (for Java and Python).public String jsonEncode(int[] value)
Param
jsonDecode()
.jsonEncode
in class Param<int[]>
public int[] jsonDecode(String json)
Param
jsonDecode
in class Param<int[]>