T
- public class ReturnT<T> extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static ReturnT<String> |
FAIL |
static int |
FAIL_CODE |
static long |
serialVersionUID |
static ReturnT<String> |
SUCCESS |
static int |
SUCCESS_CODE |
Constructor and Description |
---|
ReturnT(int code,
String msg) |
ReturnT(T content) |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
T |
getContent() |
String |
getMsg() |
void |
setCode(int code) |
void |
setContent(T content) |
void |
setMsg(String msg) |
String |
toString() |
public static final long serialVersionUID
public static final int SUCCESS_CODE
public static final int FAIL_CODE
Copyright © 2018. All rights reserved.