public class RequestParameter extends HashMap<String,Object>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Method and Description |
|---|---|
RequestParameter |
addObjectParameter(String key,
Object obj)
添加一个请求参数
|
RequestParameter |
addParameter(String key,
Object obj)
添加一个请求参数
|
static RequestParameter |
build()
build一个RequestParameter
|
static RequestParameter |
buildByMap(Map map)
将Map内的值全部转为请求参数
|
String |
toString()
直接转为可用的string
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCodepublic RequestParameter addParameter(String key, Object obj)
key - 参数名obj - 参数户的值public RequestParameter addObjectParameter(String key, Object obj)
key - 参数名obj - 参数户的值public static RequestParameter buildByMap(Map map)
map - 需要转换的mappublic static RequestParameter build()
public String toString()
toString in class AbstractMap<String,Object>Copyright © 2019. All rights reserved.