mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
Dict 重写containsKey
This commit is contained in:
parent
a38e3e52af
commit
78d6cea9a2
@ -616,4 +616,10 @@ public class Dict extends LinkedHashMap<String, Object> implements BasicTypeGett
|
||||
Arrays.stream(fields).forEach(f -> set(LambdaUtil.getFieldName(f), f.callWithRuntimeException()));
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean containsKey(Object key) {
|
||||
return super.containsKey(customKey((String) key));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user