public class Rpc extends HashMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 构造器和说明 |
|---|
Rpc() |
| 限定符和类型 | 方法和说明 |
|---|---|
Rpc |
delete(Object key) |
boolean |
equals(Object rpc) |
Boolean |
getBoolean(Object key) |
Double |
getDouble(Object key) |
Float |
getFloat(Object key) |
Integer |
getInt(Object key) |
Long |
getLong(Object key) |
String |
getMsg() |
Number |
getNumber(Object key) |
String |
getStr(Object key) |
boolean |
isFalse(Object key)
key 存在,并且 value 为 false,则返回 true
|
boolean |
isNo() |
boolean |
isNull(Object key)
key 不存在,或者 key 存在但 value 为null
|
boolean |
isOk() |
boolean |
isTrue(Object key)
key 存在,并且 value 为 true,则返回 true
|
static Rpc |
no(String msg)
业务异常
|
boolean |
notNull(Object key)
key 存在,并且 value 不为 null
|
static Rpc |
ok()
业务正常
|
static Rpc |
ok(String json)
业务正常
|
Rpc |
set(Map map) |
Rpc |
set(Object key,
Object value) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valueshashCode, toStringpublic static Rpc ok()
public boolean isOk()
public boolean isNo()
public String getMsg()
public boolean notNull(Object key)
public boolean isNull(Object key)
public boolean isTrue(Object key)
public boolean isFalse(Object key)
public boolean equals(Object rpc)
equals 在接口中 Mapequals 在类中 AbstractMapCopyright © 2025. All rights reserved.