!697 Dict 重写containsKey

Merge pull request !697 from handy/handy-12
This commit is contained in:
Looly 2022-07-16 00:48:10 +00:00 committed by Gitee
commit cc6a9c02c9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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