Dict 重写containsKey

This commit is contained in:
韩帅 2022-07-12 20:01:18 +08:00
parent a38e3e52af
commit 78d6cea9a2

View File

@ -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));
}
}