public class Result<T> extends Object
Constructor and Description |
---|
Result() |
Modifier and Type | Method and Description |
---|---|
T |
getContent()
方法返回的数据 The data returned by the method
|
String |
getMessage()
方法关于执行结果的说明 Description of the method's execution results
|
boolean |
isSucceed()
方法操作的结果是否成功 Whether the result of the method operation is successful
|
void |
setContent(T content) |
void |
setMessage(String message) |
void |
setSucceed(boolean succeed) |
public String getMessage()
public void setMessage(String message)
public boolean isSucceed()
public T getContent()
public void setSucceed(boolean succeed)
public void setContent(T content)
Copyright © 2016–2021. All rights reserved.