Class Request<ParamType,IdType>
- java.lang.Object
-
- com.github.jinahya.jsonrpc.bind.v1.Identifiable<IdType>
-
- com.github.jinahya.jsonrpc.bind.v1.AbstractRequest<ParamType,IdType>
-
- com.github.jinahya.jsonrpc.bind.v1.Request<ParamType,IdType>
-
public class Request<ParamType,IdType> extends AbstractRequest<ParamType,IdType>
A class for binding requests.- Author:
- Jin Kwon <onacit_at_gmail.com>
-
-
Field Summary
-
Fields inherited from class com.github.jinahya.jsonrpc.bind.v1.AbstractRequest
PROPERTY_NAME_METHOD, PROPERTY_NAME_PARAMS
-
Fields inherited from class com.github.jinahya.jsonrpc.bind.v1.Identifiable
PROPERTY_NAME_ID
-
-
Constructor Summary
Constructors Constructor Description Request()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdTypegetId()Returns the current value of "id" property.protected @javax.validation.constraints.AssertFalse booleanisIdNull()Indicates whether the current value of "id" property is semanticallynull.-
Methods inherited from class com.github.jinahya.jsonrpc.bind.v1.AbstractRequest
equals, getMethod, getParams, hashCode, setMethod, setParams, toString
-
Methods inherited from class com.github.jinahya.jsonrpc.bind.v1.Identifiable
copyIdFrom, copyIdTo, setId
-
-
-
-
Method Detail
-
getId
@NotNull public IdType getId()
Returns the current value of "id" property.The
getId()method ofRequestclass is annotated withNotNull.- Overrides:
getIdin classIdentifiable<IdType>- Returns:
- the current value of "id" property.
-
isIdNull
@AssertFalse protected @javax.validation.constraints.AssertFalse boolean isIdNull()
Indicates whether the current value of "id" property is semanticallynull.The
isIdNull()method ofIdentifiableclass returns the value of following expression.
ThegetId() == nullisIdNull()method ofRequestclass annotated withAssertFalse.- Overrides:
isIdNullin classIdentifiable<IdType>- Returns:
trueif the current value of "id" property is semanticallynull;falseotherwise.
-
-