@Deprecated
public class R<T>
extends java.lang.Object
implements java.io.Serializable
| 构造器和说明 |
|---|
R()
已过时。
|
R(IErrorCode errorCode)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
canEqual(java.lang.Object other)
已过时。
|
boolean |
equals(java.lang.Object o)
已过时。
|
static <T> R<T> |
failed(IErrorCode errorCode)
已过时。
|
static <T> R<T> |
failed(java.lang.String msg)
已过时。
|
long |
getCode()
已过时。
业务错误码
|
T |
getData()
已过时。
结果集
|
java.lang.String |
getMsg()
已过时。
描述
|
int |
hashCode()
已过时。
|
boolean |
ok()
已过时。
|
static <T> R<T> |
ok(T data)
已过时。
|
static <T> R<T> |
restResult(T data,
IErrorCode errorCode)
已过时。
|
T |
serviceData()
已过时。
服务间调用非业务正常,异常直接释放
|
R<T> |
setCode(long code)
已过时。
业务错误码
|
R<T> |
setData(T data)
已过时。
结果集
|
R<T> |
setMsg(java.lang.String msg)
已过时。
描述
|
java.lang.String |
toString()
已过时。
|
public R()
public R(IErrorCode errorCode)
public static <T> R<T> ok(T data)
public static <T> R<T> failed(java.lang.String msg)
public static <T> R<T> failed(IErrorCode errorCode)
public static <T> R<T> restResult(T data, IErrorCode errorCode)
public boolean ok()
public T serviceData()
public long getCode()
public T getData()
public java.lang.String getMsg()
public boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode 在类中 java.lang.Objectpublic java.lang.String toString()
toString 在类中 java.lang.Object