Class RequestObject<ParamsType,​IdType>

    • Field Detail

      • PROPERTY_NAME_METHOD

        public static final String PROPERTY_NAME_METHOD
        The property name for $.method. The value is "method".
        See Also:
        Constant Field Values
      • PROPERTY_NAME_PARAMS

        public static final String PROPERTY_NAME_PARAMS
        The property name for $.params. The value is "params".
        See Also:
        Constant Field Values
    • Constructor Detail

      • RequestObject

        public RequestObject()
        Creates a new instance.
    • Method Detail

      • toString

        public String toString()
        Returns a string representation of the object.
        Overrides:
        toString in class JsonrpcObject<IdType>
        Returns:
        a string representation of the object.
      • equals

        public boolean equals​(Object obj)
        Indicates whether some other object is "equal to" this one.
        Overrides:
        equals in class JsonrpcObject<IdType>
        Parameters:
        obj - the reference object with which to compare.
        Returns:
        true if this object is the same as the obj argument; false otherwise.
      • hashCode

        public int hashCode()
        Returns a hash code value for the object.
        Overrides:
        hashCode in class JsonrpcObject<IdType>
        Returns:
        a hash code value for this object.
      • getMethod

        public String getMethod()
        Returns the current value of "method" property. The default value of the property is null.
        Returns:
        the current value of "method" property.
      • setMethod

        public void setMethod​(String method)
        Replace the current value of "method" property with specified value.
        Parameters:
        method - new value for "method" property.
      • getParams

        public ParamsType getParams()
        Returns the current value of "params" property. The default value of the property is null.
        Returns:
        the current value of "params" property.
      • setParams

        public void setParams​(ParamsType params)
        Replaces the current value of "params" property with specified value.
        Parameters:
        params - new value for "params" property.
      • isParamsStructured

        @AssertTrue
        protected @javax.validation.constraints.AssertTrue boolean isParamsStructured()
        Indicates whether the current value of "params" property is, in a view of JSON, a structured value.
        Returns:
        true if "params" property is, in a view of JSoN, a structured value; false otherwise.
        See Also:
        Parameter Structures (JSON-RPC 2.0 Specification)