T - the type parameterpublic class JsonRpc20Response<T>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonRpc20Response.Error
The type Error.
|
| Constructor and Description |
|---|
JsonRpc20Response() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
JsonRpc20Response.Error |
getError()
Gets error.
|
long |
getId()
Gets id.
|
java.lang.String |
getJsonrpc()
Gets jsonrpc.
|
T |
getResult()
Gets result.
|
java.lang.Throwable |
getThrowable()
Gets throwable.
|
int |
hashCode() |
void |
setError(JsonRpc20Response.Error error)
Sets error.
|
void |
setId(long id)
Sets id.
|
void |
setJsonrpc(java.lang.String jsonrpc)
Sets jsonrpc.
|
void |
setResult(T result)
Sets result.
|
void |
setThrowable(java.lang.Throwable throwable)
Sets throwable.
|
java.lang.String |
toString() |
public java.lang.Throwable getThrowable()
public void setThrowable(java.lang.Throwable throwable)
throwable - the throwablepublic long getId()
public void setId(long id)
id - the idpublic java.lang.String getJsonrpc()
public void setJsonrpc(java.lang.String jsonrpc)
jsonrpc - the jsonrpcpublic T getResult()
public void setResult(T result)
result - the resultpublic JsonRpc20Response.Error getError()
public void setError(JsonRpc20Response.Error error)
error - the errorpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object