T - result type parameterU - error type parameterpublic class ResponseObject<T,U extends ErrorObject<?>> extends JsonrpcObject
JSONRPC| Constructor and Description |
|---|
ResponseObject() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
U |
getError()
Returns current value of
error attribute. |
T |
getResult()
Returns current value of
result attribute. |
int |
hashCode() |
void |
setError(U error)
Replaces value of
error attribute with given. |
void |
setResult(T result)
Replaces value of
result attribute with given. |
String |
toString() |
getId, getJsonrpc, setIdpublic String toString()
toString in class JsonrpcObjectpublic boolean equals(Object o)
equals in class JsonrpcObjectpublic int hashCode()
hashCode 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.