function setParameter(parameter, value) {
    if (this[parameter] === value) return this;

    var modification = {};

    modification[parameter] = value;

    return this.setQueryParameters(modification);
  }
function setParameter(parameter, value) {
    if (this[parameter] === value) return this;

    var modification = {};

    modification[parameter] = value;

    return this.setQueryParameters(modification);
  }
function setParameter ( parameter , value ) { if ( this [ parameter ] === value ) return this ; var modification = { } ; modification [ parameter ] = value ; return this . setQueryParameters ( modification ) ; }
Let the user set a specific value for a given parameter. Will return the
same instance if the parameter is invalid or if the value is the same as the
previous one.
@method
@param {string} parameter the parameter name
@param {any} value the value to be set, must be compliant with the definition
of the attribute on the object
@return {SearchParameters} the updated state
Let the user set a specific value for a given parameter . Will return the same instance if the parameter is invalid or if the value is the same as the previous one .