mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
add method
This commit is contained in:
parent
68b402fd72
commit
ff962c12e9
@ -178,6 +178,18 @@ public class UrlQuery {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 移除键及对应所有的值
|
||||
*
|
||||
* @param key 键
|
||||
* @return this
|
||||
* @since 5.8.30
|
||||
*/
|
||||
public UrlQuery remove(final CharSequence key) {
|
||||
this.query.remove(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 解析URL中的查询字符串
|
||||
*
|
||||
@ -247,7 +259,7 @@ public class UrlQuery {
|
||||
* <li>如果value为{@code null},只保留key,如key1对应value为{@code null}生成类似于{@code key1&key2=v2}形式</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param charset encode编码,null表示不做encode编码
|
||||
* @param charset encode编码,null表示不做encode编码
|
||||
* @return URL查询字符串
|
||||
*/
|
||||
public String build(final Charset charset) {
|
||||
@ -269,9 +281,9 @@ public class UrlQuery {
|
||||
* <li>如果value为{@code null},只保留key,如key1对应value为{@code null}生成类似于{@code key1&key2=v2}形式</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param keyCoder 键值对中键的编码器
|
||||
* @param valueCoder 键值对中值的编码器
|
||||
* @param charset encode编码,null表示不做encode编码
|
||||
* @param keyCoder 键值对中键的编码器
|
||||
* @param valueCoder 键值对中值的编码器
|
||||
* @param charset encode编码,null表示不做encode编码
|
||||
* @return URL查询字符串
|
||||
* @since 5.8.0
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user