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