mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
AbsCollValueMap添加removeValue和removeValues方法,用于list value值移除
This commit is contained in:
parent
99a09a5770
commit
7a71c90edb
@ -3,13 +3,14 @@
|
|||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
# 5.8.8.M1 (2022-09-21)
|
# 5.8.8.M1 (2022-09-22)
|
||||||
|
|
||||||
### 🐣新特性
|
### 🐣新特性
|
||||||
* 【core 】 StreamUtil.of方法新增对 Iterator 支持;StreamUtil.of(Iterable) 方法优化(pr#807@Gitee)
|
* 【core 】 StreamUtil.of方法新增对 Iterator 支持;StreamUtil.of(Iterable) 方法优化(pr#807@Gitee)
|
||||||
* 【core 】 增加.wgt格式的MimeType(pr#2617@Github)
|
* 【core 】 增加.wgt格式的MimeType(pr#2617@Github)
|
||||||
* 【core 】 EnumUtil.getBy增加带默认值重载(issue#I5RZU6@Gitee)
|
* 【core 】 EnumUtil.getBy增加带默认值重载(issue#I5RZU6@Gitee)
|
||||||
* 【core 】 ModifierUtil和ReflectUtil增加removeFinalModify(pr#810@Gitee)
|
* 【core 】 ModifierUtil和ReflectUtil增加removeFinalModify(pr#810@Gitee)
|
||||||
|
* 【core 】 AbsCollValueMap添加removeValue和removeValues方法,用于list value值移除(pr#813@Gitee)
|
||||||
|
|
||||||
### 🐞Bug修复
|
### 🐞Bug修复
|
||||||
* 【core 】 修复FileNameUtil.cleanInvalid无法去除换行符问题(issue#I5RMZV@Gitee)
|
* 【core 】 修复FileNameUtil.cleanInvalid无法去除换行符问题(issue#I5RMZV@Gitee)
|
||||||
|
@ -2,7 +2,6 @@ package cn.hutool.core.map;
|
|||||||
|
|
||||||
import cn.hutool.core.collection.CollUtil;
|
import cn.hutool.core.collection.CollUtil;
|
||||||
import cn.hutool.core.collection.ListUtil;
|
import cn.hutool.core.collection.ListUtil;
|
||||||
import cn.hutool.core.lang.Console;
|
|
||||||
import cn.hutool.core.map.multi.ListValueMap;
|
import cn.hutool.core.map.multi.ListValueMap;
|
||||||
import cn.hutool.core.map.multi.SetValueMap;
|
import cn.hutool.core.map.multi.SetValueMap;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
@ -11,6 +10,7 @@ import org.junit.Test;
|
|||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
|
|
||||||
public class CollValueMapTest {
|
public class CollValueMapTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testListValueMapRemove() {
|
public void testListValueMapRemove() {
|
||||||
final ListValueMap<String, String> entries = new ListValueMap<>();
|
final ListValueMap<String, String> entries = new ListValueMap<>();
|
||||||
@ -25,7 +25,6 @@ public class CollValueMapTest {
|
|||||||
entries.putValue("three","11");
|
entries.putValue("three","11");
|
||||||
|
|
||||||
entries.removeValue("one","22");
|
entries.removeValue("one","22");
|
||||||
Console.log(entries);
|
|
||||||
|
|
||||||
Assert.assertEquals(ListUtil.of("11","33","22"), entries.get("one"));
|
Assert.assertEquals(ListUtil.of("11","33","22"), entries.get("one"));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user