Class ObjectParameters
- java.lang.Object
-
- eliasstar.jsonrpc.objects.parameter.ObjectParameters
-
- All Implemented Interfaces:
Parameters<com.google.gson.JsonObject>
,Supplier<com.google.gson.JsonObject>
public final class ObjectParameters extends Object implements Parameters<com.google.gson.JsonObject>
Represents the params in object format.- Since:
- 0.1.0
- Author:
- Elias*
- See Also:
- JSON-RPC Specification
-
-
Constructor Summary
Constructors Constructor Description ObjectParameters(com.google.gson.JsonObject params)
Creates anObjectParameters
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
TwoObjectParameters
objects are equal if their underlyingJsonObject
is equal.com.google.gson.JsonObject
get()
Getter for the actual parameters.int
hashCode()
Returns the hash code for thisObjectParameters
.String
toString()
Returns the string representation for thisObjectParameters
.void
write(com.google.gson.stream.JsonWriter out)
Writes aJsonObject
to out.
-
-
-
Constructor Detail
-
ObjectParameters
public ObjectParameters(com.google.gson.JsonObject params)
Creates anObjectParameters
.- Parameters:
params
- The parameters to be used
-
-
Method Detail
-
get
public com.google.gson.JsonObject get()
Getter for the actual parameters.
-
write
public void write(com.google.gson.stream.JsonWriter out) throws IOException
Writes aJsonObject
to out.- Specified by:
write
in interfaceParameters<com.google.gson.JsonObject>
- Parameters:
out
- TheJsonWriter
used as output- Throws:
IOException
- If serialization fails
-
hashCode
public int hashCode()
Returns the hash code for thisObjectParameters
.
-
equals
public boolean equals(Object obj)
TwoObjectParameters
objects are equal if their underlyingJsonObject
is equal.
-
toString
public String toString()
Returns the string representation for thisObjectParameters
.
-
-