Converts specified value into PagingParams.

@param value value to be converted
@return a newly created PagingParams.
429130
public static PagingParams fromValue(Object value) {
		if (value instanceof PagingParams)
			return (PagingParams) value;

		AnyValueMap map = AnyValueMap.fromValue(value);
		return PagingParams.fromMap(map);
	}
857823
public static AcceptStatus fromValue(int value) {
        AcceptStatus status = VALUES.get(value);
        if (status == null) {
            status = new AcceptStatus(value);
            VALUES.put(value, status);
        }
        return status;
    }
840300
public Request setParam(String name, String value) {
        this.params.put(name, value);
        return this;
    }
583460
public static CharSequence toParameterValue(final Boolean value) {
        return value != null ? Boolean.toString(value) : Attr.nullValue();
    }
741263
public void setValue(String value) {
		try {
			this.telUrl = SipFactoryImpl.addressFactory.createTelURL(value);
		} catch (ParseException ex) {
			throw new IllegalArgumentException("Bad url string " + value);
		}
	}
262547
public JSONEmitter addValue(String value) {
        checkComma();
        write('"');
        write(encodeString(value));
        write('"');
        return this;
    }
1263192
private String urlEncode(Object value)
	{
		try {
			return URLEncoder.encode(value.toString(), UTF8.name());
		} catch (UnsupportedEncodingException e) { throw new RuntimeException(e); }
	}
334101
public String put(final String key, final String Value) {
        return parameters.put(key, Value);
    }
540092
public Integer cache(Object value) {
        synchronized (this) {
            Integer key = keys.get(value);
            // Already cached?
            if (key != null) return key;
            key = next;
            cache.put(key, value);
            keys.put(value, key);
            next++;
            return key;
        }
    }
924493
public static CharSequence toParameterValue(final Float value) {
        return value != null ? Float.toString(value) : Attr.nullValue();
    }
564697
public static MediaType fromString(String value) {
        if (value == null) {
            throw new NullPointerException("value");
        }
        List<ParameterizedHeaderWithValue> headerValues = ParameterizedHeaderWithValue.fromString(value);
        if (headerValues.isEmpty()) {
            throw new IllegalArgumentException("The value '" + value + "' did not contain a valid header value");
        }
        ParameterizedHeaderWithValue v = headerValues.get(0);
        String[] split = v.value().split("/");
        if (split.length != 2) {
            throw new IllegalArgumentException("Media types must be in the format 'type/subtype'; this is inavlid: '" + v.value() + "'");
        }
        return new MediaType(split[0], split[1], v.parameters());
    }
302315
public static PageParameters toPageParameters(final Map<String, String> parameters)
	{
		final PageParameters param = new PageParameters();
		for (final Entry<String, String> parameter : parameters.entrySet())
		{
			param.add(parameter.getKey(), parameter.getValue());
		}
		return param;
	}
1063150
protected function _createLink($value, $pagingString = null)
    {
        if ($pagingString !=null ) {
            $link = $this->RequestContext->getSite()->getBaseURL().preg_replace("/\/[\/]+/", "/", ltrim($pagingString.'/'.$value.'/'));
            if($this->getLocal('UseQueryStringInCacheKey') != null)
                $link .= ($this->Request->getQueryString() != ""?"?".$this->Request->getQueryString():"");
            return $link;
        } else {
            return URLUtils::appendQueryString($this->Request->getFullURL(), array('view_page'=> $value));
        }
    }
898999
public RESTClient<RS, ERS> urlSegment(Object value) {
    if (value != null) {
      if (url.charAt(url.length() - 1) != '/') {
        url.append('/');
      }
      url.append(value.toString());
    }
    return this;
  }
1317325
public JsonWriter value(double value) {
        startValue();

        final long i = (long) value;
        if (value == (double) i) {
            writer.print(i);
        } else {
            writer.print(value);
        }
        return this;
    }
705464
@SuppressWarnings("unchecked")
  public Request addParameter(String name, Object value) {
    Map<String, Object> map = Objects.requireNonNull(parameterMap);
    if (!map.containsKey(name)) {
      map.put(name, value);
    } else {
      Object value0 = map.get(name);
      if (value0 instanceof Collection) {
        if (value instanceof Collection) {
          ((Collection) value0).addAll((Collection) value);
        } else {
          ((Collection) value0).add(value);
        }
      } else {
        List<Object> paramArray = new LinkedList<>();
        if (value instanceof Collection) {
          paramArray.addAll((Collection) value);
        } else {
          paramArray.add(value);
        }
        map.put(name, paramArray);
      }
    }
    return this;
  }
790977
public Param value(List<String> values) {
        StringBuilder valuesSb = new StringBuilder();
        for (int i = 0; i < values.size(); i++) {
            valuesSb.append(values.get(i));
            if (i != (values.size() - 1)) {
                valuesSb.append("%7C"); // it represents a pipeline character |
            }
        }
        this.value = valuesSb.toString();
        return this;
    }