| Constructor and Description |
|---|
MapUtils() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> void |
forEach(Map<K,V> map,
BiConsumer<? super K,? super V> action)
遍历
|
String |
parseMapToUrlString(Map<String,String> params,
boolean encode)
将map 转成 get 请求参数格式
XXX&XXX&XX |
public String parseMapToUrlString(Map<String,String> params, boolean encode)
XXX&XXX&XXparams - map参数encode - 是否编码,使用application/x-www-form-urlencoded,UTF-8编码public <K,V> void forEach(Map<K,V> map, BiConsumer<? super K,? super V> action)
K - map键泛型V - map值泛型map - 待遍历的 mapaction - 操作Copyright © 2023. All rights reserved.