Package com.bluersw.model
Class Result<T>
java.lang.Object
com.bluersw.model.Result<T>
方法通用返回数据类型 Method common return data type
- Author:
- sunweisheng
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription方法返回的数据 The data returned by the method方法关于执行结果的说明 Description of the method's execution resultsboolean方法操作的结果是否成功 Whether the result of the method operation is successfulvoidsetContent(T content) voidsetMessage(String message) voidsetSucceed(boolean succeed)
-
Constructor Details
-
Result
public Result()
-
-
Method Details
-
getMessage
方法关于执行结果的说明 Description of the method's execution results- Returns:
- 结果说明 Explanation of results
-
setMessage
-
isSucceed
public boolean isSucceed()方法操作的结果是否成功 Whether the result of the method operation is successful- Returns:
- 是否成功 whether succeed
-
getContent
方法返回的数据 The data returned by the method- Returns:
- 数据 data
-
setSucceed
public void setSucceed(boolean succeed) -
setContent
-