public class APIResult {
private Integer code;
private String message;
private Object result;
public Integer getCode() {
return code;
}
public void setCode(Integer code) {
this.code = code;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public Object getResult() {
return result;
}
public void setResult(Object result) {
this.result = result;
}
}
map.put("as",null)
map.put("wed","陈")
new APIResult(). setResult(map)
ignoreNull能忽略map中的null么