From 5478b1d67b0cc604658b5208607a5622d4d14154 Mon Sep 17 00:00:00 2001 From: xjm Date: Tue, 13 Oct 2020 18:43:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86CaseInsensitiveMap?= =?UTF-8?q?=E7=9A=84remove=E7=AD=89=E6=96=B9=E6=B3=95=E5=B9=B6=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=BF=BD=E7=95=A5=E5=A4=A7=E5=B0=8F=E5=86=99=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/cn/hutool/core/map/CustomKeyMap.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hutool-core/src/main/java/cn/hutool/core/map/CustomKeyMap.java b/hutool-core/src/main/java/cn/hutool/core/map/CustomKeyMap.java index 93794b9cb..15e3c2719 100644 --- a/hutool-core/src/main/java/cn/hutool/core/map/CustomKeyMap.java +++ b/hutool-core/src/main/java/cn/hutool/core/map/CustomKeyMap.java @@ -46,6 +46,18 @@ public abstract class CustomKeyMap extends MapWrapper { return super.containsKey(customKey(key)); } + @Override + public V remove(Object key) { return super.remove(customKey(key)); } + + @Override + public boolean remove(Object key, Object value) { return super.remove(customKey(key), value); } + + @Override + public boolean replace(K key, V oldValue, V newValue) { return super.replace((K) customKey(key), oldValue, newValue); } + + @Override + public V replace(K key, V value) { return super.replace((K) customKey(key), value); } + /** * 自定义键 *