AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 限定符和类型 | 字段和说明 |
|---|---|
static int |
SUCCESS |
| 构造器和说明 |
|---|
JBResult(int code,
String message) |
JBResult(JBCode simpleCode) |
JBResult(String message,
Map<? extends String,?> map) |
| 限定符和类型 | 方法和说明 |
|---|---|
static JBResult |
error(int code) |
static JBResult |
fromError(JBException e) |
int |
getCode() |
LinkedHashMap<String,Object> |
getData() |
Object |
getData(String key) |
String |
getMessage() |
JBResult |
putData(String key,
Object value) |
JBResult |
putDataAll(Map<? extends String,?> map) |
void |
setCode(int code) |
void |
setMessage(String message) |
static JBResult |
success() |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic JBResult(JBCode simpleCode)
public JBResult(int code,
String message)
public static JBResult success()
public static JBResult error(int code)
public static JBResult fromError(JBException e)
public int getCode()
public void setCode(int code)
public String getMessage()
public void setMessage(String message)
public LinkedHashMap<String,Object> getData()
Copyright © 2019. All rights reserved.