ResultType - result type parameterErrorType - error type parameterpublic class ResponseObject<IdType,ResultType,ErrorType extends ResponseObject.ErrorObject<?>> extends JsonrpcObject<IdType>
| Modifier and Type | Class and Description |
|---|---|
static class |
ResponseObject.ErrorObject<DataType>
Represents error objects.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_NAME_ERROR
The property name for
error. |
static String |
PROPERTY_NAME_RESULT
The property name for
result. |
PROPERTY_NAME_ID, PROPERTY_NAME_JSONRPC, PROPERTY_VALUE_JSONRPC| Constructor and Description |
|---|
ResponseObject() |
| Modifier and Type | Method and Description |
|---|---|
ErrorType |
getError()
Returns the current value of "error" property.
|
ResultType |
getResult()
Returns the current value of "result" property.
|
void |
setError(ErrorType error)
Replaces the current value of "error" property with given.
|
void |
setErrorExclusively(ErrorType error)
Sets the current value of "error" property exclusively.
|
void |
setResult(ResultType result)
Replaces the current value of "result" property with given.
|
void |
setResultExclusively(ResultType result)
Sets the current value of "result" property exclusively.
|
String |
toString()
Returns a string representation of the object.
|
getId, getJsonrpc, setId, setJsonrpcpublic static final String PROPERTY_NAME_RESULT
result.public static final String PROPERTY_NAME_ERROR
error.public String toString()
toString in class JsonrpcObject<IdType>public ResultType getResult()
public void setResult(ResultType result)
result - new value for "result" property.public void setResultExclusively(ResultType result)
result argument is not null, sets "error" property with null.result - new value for "result" property.public ErrorType getError()
public void setError(ErrorType error)
error - new value for "error" property.Copyright © 2019 Jinahya, Inc.. All rights reserved.