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 booleanequals(Object obj)TwoObjectParametersobjects are equal if their underlyingJsonObjectis equal.com.google.gson.JsonObjectget()Getter for the actual parameters.inthashCode()Returns the hash code for thisObjectParameters.StringtoString()Returns the string representation for thisObjectParameters.voidwrite(com.google.gson.stream.JsonWriter out)Writes aJsonObjectto 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 IOExceptionWrites aJsonObjectto out.- Specified by:
writein interfaceParameters<com.google.gson.JsonObject>- Parameters:
out- TheJsonWriterused as output- Throws:
IOException- If serialization fails
-
hashCode
public int hashCode()
Returns the hash code for thisObjectParameters.
-
equals
public boolean equals(Object obj)
TwoObjectParametersobjects are equal if their underlyingJsonObjectis equal.
-
toString
public String toString()
Returns the string representation for thisObjectParameters.
-
-