Package com.xxl.tool.response
Class Response<T>
java.lang.Object
com.xxl.tool.response.Response<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Serializable
Response (from ReturnT of xxl-job)
- Author:
- xuxueli 2015-12-4 16:32:31
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()getData()getMsg()booleanis successstatic booleanis successstatic <T> Response<T>build responsestatic <T> Response<T>build responsestatic <T> Response<T>ofFail()build fail responsestatic <T> Response<T>build fail responsestatic <T> Response<T>build success responsestatic <T> Response<T>ofSuccess(T data) build success responsevoidsetCode(int code) voidvoidtoString()
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
Response
public Response() -
Response
-
Response
-
-
Method Details
-
getCode
public int getCode() -
setCode
public void setCode(int code) -
getMsg
-
setMsg
-
getData
-
setData
-
toString
-
isSuccess
public boolean isSuccess()is success- Returns:
- true if success, false otherwise
-
isSuccess
is success- Parameters:
response- the response- Returns:
- true if success, false otherwise
-
of
build response -
of
build response -
ofSuccess
build success response -
ofSuccess
build success response -
ofFail
build fail response -
ofFail
build fail response
-