Creates a new instance of Parameters with the specified values.
Where the parameter and their values are stored.
Returns the value of the requested parameter.
Returns the value of the requested parameter.
This method is unsafe: it will throw an exception if the requested parameter is either absent or not found. For safer alternatives, see Parameters.get and Parameters.getOpt.
type of the parameter to retrieve. An implicit instance of ValueReader for this type is required to be in scope.
name of the parameter to retrieve.
Checks whether the current instance contains a parameter with the specified name.
Returns the value of the requested parameter.
Returns the value of the requested parameter.
This method differentiates between an absent parameter (None
) and one with an illegal value (Some(Failure))
.
If that distinction is not necessary, used Parameters.getOpt instead.
type of the parameter to retrieve. An implicit instance of ValueReader for this type is required to be in scope.
name of the parameter to retrieve.
Returns the value of the requested parameter.
Returns the value of the requested parameter.
This method does not differentiate between an absent parameter and one with an illegal value: both cases will
return None
. If the distinction is important, use the Parameters.get method.
type of the parameter to retrieve. An implicit instance of ValueReader for this type is required to be in scope.
name of the parameter to retrieve.
Removes the specified parameter if it exists.
Removes the specified parameter if it exists. Otherwise, does nothing.
name of the parameter to remove.
Sets the specified parameter to the specified value.
Sets the specified parameter to the specified value.
type of the parameter. An implicit instance of ValueWriter for this type is required to be in scope.
name of the parameter.
value of the parameter.
Sets the specified parameter to the specified value if it does not exist.
Sets the specified parameter to the specified value if it does not exist. Otherwise, does nothing.
type of the parameter. An implicit instance of ValueWriter for this type is required to be in scope.
name of the parameter to set.
desired value.
Stores a list of name / value pairs.
Values are stored in their serialized forms as
String
, but can be manipulated as more specific types provided corresponding instances of ValueReader and ValueWriter are in scope. Default implementations of these can be found in ValueFormat.