Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【建议】Record.getString,支持默认值 #1575

Closed
lmm1990 opened this issue Feb 25, 2021 · 1 comment
Closed

【建议】Record.getString,支持默认值 #1575

lmm1990 opened this issue Feb 25, 2021 · 1 comment

Comments

@lmm1990
Copy link

lmm1990 commented Feb 25, 2021

如:
public String getString(String name,String def) {
String result = getString(name);
if(result==null){
return def;
}
return result;
}

@threefish
Copy link
Member

Record record=new Record(); NutMap nutMap=new NutMap(record); nutMap.getString("xx", "默认值");
看看文档和源码吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants