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