T - result type parameterU - error type parameterpublic class ResponseObject<T,U extends ResponseObject.ErrorObject<?>> extends JsonrpcObject
| Modifier and Type | Class and Description |
|---|---|
static class |
ResponseObject.ErrorObject<T>
Represents error objects.
|
JSONRPC| Constructor and Description |
|---|
ResponseObject() |
| Modifier and Type | Method and Description |
|---|---|
U |
getError()
Returns the current value of
error attribute. |
T |
getResult()
Returns the current value of
result attribute. |
void |
setError(U error)
Replaces the current value of
error attribute with given. |
void |
setResult(T result)
Replaces the current value of
result attribute with given. |
String |
toString()
Returns a string representation of the object.
|
getId, getJsonrpc, setId, setJsonrpcpublic String toString()
toString in class JsonrpcObjectpublic T getResult()
result attribute.result attributepublic void setResult(T result)
result attribute with given.result - new value for result attributepublic U getError()
error attribute.error attributepublic void setError(U error)
error attribute with given.error - new value for error attributeCopyright © 2019 Jinahya, Inc.. All rights reserved.