Methods
(static) apply(…paramPairs) → {module:eclairjs/ml/param.ParamMap}
Constructs a param map by specifying its entries.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
paramPairs |
module:eclairjs/ml/param.ParamMap |
<repeatable> |
- Source:
Returns:
(static) empty() → {module:eclairjs/ml/param.ParamMap}
Returns an empty param map.
- Source:
Returns:
$plus$plus(other) → {module:eclairjs/ml/param.ParamMap}
Returns a new param map that contains parameters in this map and the given map,
where the latter overwrites this if there exist conflicts.
Parameters:
Name | Type | Description |
---|---|---|
other |
module:eclairjs/ml/param.ParamMap |
- Source:
Returns:
$plus$plus$eq(other) → {module:eclairjs/ml/param.ParamMap}
Adds all parameters from the input param map into this param map.
Parameters:
Name | Type | Description |
---|---|---|
other |
module:eclairjs/ml/param.ParamMap |
- Source:
Returns:
apply(param) → {object}
Gets the value of the input param or its default value if it does not exist.
Raises a NoSuchElementException if there is no value associated with the input param.
Parameters:
Name | Type | Description |
---|---|---|
param |
module:eclairjs/ml/param.Param |
- Source:
Returns:
- Type
- object
contains(param) → {boolean}
Checks whether a parameter is explicitly specified.
Parameters:
Name | Type | Description |
---|---|---|
param |
module:eclairjs/ml/param.Param |
- Source:
Returns:
- Type
- boolean
copy() → {module:eclairjs/ml/param.ParamMap}
Creates a copy of this param map.
- Source:
Returns:
filter(parent) → {module:eclairjs/ml/param.ParamMap}
Filters this param map for the given parent.
Parameters:
Name | Type | Description |
---|---|---|
parent |
Params |
- Source:
Returns:
get(param) → {object}
Optionally returns the value associated with a param.
Parameters:
Name | Type | Description |
---|---|---|
param |
module:eclairjs/ml/param.Param |
- Source:
Returns:
- Type
- object
getOrElse(param, defaultValue) → {object}
Returns the value associated with a param or a default value.
Parameters:
Name | Type | Description |
---|---|---|
param |
module:eclairjs/ml/param.Param | |
defaultValue |
object |
- Source:
Returns:
- Type
- object
put(paramPairs, value)
Puts a list of param pairs (overwrites if the input params exists).
Parameters:
Name | Type | Description |
---|---|---|
paramPairs |
module:eclairjs/ml/param.ParamPair | module:eclairjs/ml/param.Param | |
value |
object |
- Source:
Returns:
putwithValue(param, value)
Puts a (param, value) pair (overwrites if the input param exists).
Parameters:
Name | Type | Description |
---|---|---|
param |
module:eclairjs/ml/param.Param | |
value |
object |
- Source:
Returns:
remove(param) → {object}
Removes a key from this map and returns its value associated previously as an option.
Parameters:
Name | Type | Description |
---|---|---|
param |
module:eclairjs/ml/param.Param |
- Source:
Returns:
- Type
- object
size() → {integer}
Number of param pairs in this map.
- Source:
Returns:
- Type
- integer
toArray() → {Array.<module:eclairjs/ml/param.ParamMap>}
Converts this param map to a array of param pairs.
- Source:
Returns:
- Type
- Array.<module:eclairjs/ml/param.ParamMap>
toString() → {string}
- Source:
Returns:
- Type
- string