/**
* <br />
* @param statusCode
* @param message
* @param detail
* @return <br />
* @author hety
*/
public static Map<String, > result(final int statusCode, final String message, final detail) {
if (Toolkit .isEmpty(statusCode)) {
throw new IllegalArgumentException(\"parameter statusCode can not be null\");
}
@SuppressWarnings(\"serial\")
Map<String, > map = new HashMap<String, >() {
{
if (!Toolkit .isEmpty(statusCode)) {
put(\"statusCode\", statusCode);
}
if (!Toolkit .isEmpty(message)) {
put(\"message\", message);
}
if (!Toolkit .isEmpty(detail)) {
put(\"detail\", detail);
}
}
};
return map;
}
/**
* ordered map<br />
* @param statusCode
* @param message
* @param detail
* @return <br />
*/
public static Map<String, > listOrderedMap(final int statusCode, final String message, final detail) {
if (Toolkit .isEmpty(statusCode)) {
throw new IllegalArgumentException(\"parameter statusCode can not be null\");
}
@SuppressWarnings({\"serial\", \"unchecked\"})
Map<String, > map = new ListOrderedMap() {
{
if (!Toolkit .isEmpty(statusCode)) {
put(\"statusCode\", statusCode);
}
if (!Toolkit .isEmpty(message)) {
put(\"message\", message);
}
if (!Toolkit .isEmpty(detail)) {
put(\"detail\", detail);
}
}
};
return map;
}
继续阅读与本文标签相同的文章
上一篇 :
如何在Excel表格中汇总同姓名数据?
下一篇 :
西峡米坪人社所:亲自上门为老人进行人脸识别认证
-
Yotta专业存储设备芝麻云节点服务器IDC数据机房托管的优势
2026-05-18栏目: 教程
-
Edge逐步融入Fluent Design元素:新版颜色筛选器控件上线
2026-05-18栏目: 教程
-
阿里云服务器突发性能实例t5配置性能使用场景及注意事项
2026-05-18栏目: 教程
-
Square为澳大利亚餐馆提供定制平台!
2026-05-18栏目: 教程
-
711便利店:日本计划关店1000家,母公司将裁员3000人
2026-05-18栏目: 教程
