AbsCollValueMap添加removeValue和removeValues方法,用于list value值移除

This commit is contained in:
Looly
2022-09-22 16:25:51 +08:00
parent 99a09a5770
commit 7a71c90edb
2 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,6 @@ package cn.hutool.core.map;
import cn.hutool.core.collection.CollUtil;
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.SetValueMap;
import org.junit.Assert;
@@ -11,6 +10,7 @@ import org.junit.Test;
import java.util.HashSet;
public class CollValueMapTest {
@Test
public void testListValueMapRemove() {
final ListValueMap<String, String> entries = new ListValueMap<>();
@@ -25,7 +25,6 @@ public class CollValueMapTest {
entries.putValue("three","11");
entries.removeValue("one","22");
Console.log(entries);
Assert.assertEquals(ListUtil.of("11","33","22"), entries.get("one"));