T - params type parameterpublic class RequestObject<T> extends JsonrpcObject
JSONRPC| Constructor and Description |
|---|
RequestObject() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getMethod()
Returns current value of
method attribute. |
T |
getParams()
Returns current value of
params attribute. |
int |
hashCode() |
boolean |
isNotification()
Checks if this request object is a notification.
|
void |
setMethod(String method)
Replaces value of
method attribute with given. |
void |
setParams(T params)
Replaces value of
params 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 boolean isNotification()
true if this request object is a notification, false otherwisepublic String getMethod()
method attribute.method attributepublic void setMethod(String method)
method attribute with given.method - new value for method attributepublic T getParams()
params attribute.params attributepublic void setParams(T params)
params attribute with given.params - new value for params attributeCopyright © 2019 Jinahya, Inc.. All rights reserved.