public class Result<T> extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
T |
getEntity() |
Set<String> |
getHashs() |
String |
getMsg() |
RPCResult.StatusType |
getStatus() |
boolean |
isFail() |
boolean |
isSuccess() |
boolean |
isTimeout() |
void |
setEntity(T entity) |
void |
setHashs(Set<String> hashs) |
void |
setMsg(String msg) |
void |
setStatus(RPCResult.StatusType status) |
public Result()
public Result(String msg)
public boolean isTimeout()
public boolean isSuccess()
public boolean isFail()
public RPCResult.StatusType getStatus()
public void setStatus(RPCResult.StatusType status)
public T getEntity()
public void setEntity(T entity)
public String getMsg()
public void setMsg(String msg)
Copyright © 2020. All Rights Reserved.