public interface JsonrpcMessage extends JsonrpcObject
| Modifier and Type | Method and Description |
|---|---|
default Integer |
getIdAsInteger()
Returns current value of
JsonrpcMessageConstants.PROPERTY_NAME_ID property as an Integer value. |
default Long |
getIdAsLong()
Returns current value of
JsonrpcMessageConstants.PROPERTY_NAME_ID property as a Long value. |
BigInteger |
getIdAsNumber()
Returns current value of
JsonrpcMessageConstants.PROPERTY_NAME_ID property as a number. |
String |
getIdAsString()
Returns current value of
JsonrpcMessageConstants.PROPERTY_NAME_ID property as a string. |
@Pattern(regexp="2\\.0") @NotNull String |
getJsonrpc()
Returns current value of
JsonrpcMessageConstants.PROPERTY_NAME_JSONRPC property. |
boolean |
hasId()
Indicates whether this message has a value for
JsonrpcMessageConstants.PROPERTY_NAME_ID property. |
@AssertTrue boolean |
isIdContextuallyValid()
Indicates whether current value of
JsonrpcMessageConstants.PROPERTY_NAME_ID property is contextually
valid. |
default void |
setIdAsInteger(Integer id)
Replaces current value of
JsonrpcMessageConstants.PROPERTY_NAME_ID property with given value. |
default void |
setIdAsLong(Long id)
Replaces current value of
JsonrpcMessageConstants.PROPERTY_NAME_ID property with given value. |
void |
setIdAsNumber(BigInteger id)
Replaces current value of
JsonrpcMessageConstants.PROPERTY_NAME_ID property with given value. |
void |
setIdAsString(String id)
Replaces current value of
JsonrpcMessageConstants.PROPERTY_NAME_ID property with given value. |
void |
setJsonrpc(String jsonrpc)
Replaces current value of
JsonrpcMessageConstants.PROPERTY_NAME_JSONRPC property with specified value. |
isContextuallyValid@Pattern(regexp="2\\.0") @NotNull @Pattern(regexp="2\\.0") @NotNull String getJsonrpc()
JsonrpcMessageConstants.PROPERTY_NAME_JSONRPC property.JsonrpcMessageConstants.PROPERTY_NAME_JSONRPC property.void setJsonrpc(String jsonrpc)
JsonrpcMessageConstants.PROPERTY_NAME_JSONRPC property with specified value.jsonrpc - new value for JsonrpcMessageConstants.PROPERTY_NAME_JSONRPC property.boolean hasId()
JsonrpcMessageConstants.PROPERTY_NAME_ID property.JsonrpcMessageConstants.PROPERTY_NAME_ID property;
false otherwise.false any getIdAs...() method should return null.@AssertTrue @AssertTrue boolean isIdContextuallyValid()
JsonrpcMessageConstants.PROPERTY_NAME_ID property is contextually
valid.true if valid; false otherwise.hasId() returns false.String getIdAsString()
JsonrpcMessageConstants.PROPERTY_NAME_ID property as a string.JsonrpcMessageConstants.PROPERTY_NAME_ID property; null when hasId() returns false.void setIdAsString(String id)
JsonrpcMessageConstants.PROPERTY_NAME_ID property with given value.id - new value for JsonrpcMessageConstants.PROPERTY_NAME_ID property.BigInteger getIdAsNumber()
JsonrpcMessageConstants.PROPERTY_NAME_ID property as a number.JsonrpcMessageConstants.PROPERTY_NAME_ID property; null when hasId() returns false.void setIdAsNumber(BigInteger id)
JsonrpcMessageConstants.PROPERTY_NAME_ID property with given value.id - new value for JsonrpcMessageConstants.PROPERTY_NAME_ID property.default Long getIdAsLong()
JsonrpcMessageConstants.PROPERTY_NAME_ID property as a Long value.JsonrpcMessageConstants.PROPERTY_NAME_ID property; null when hasId() returns false.getIdAsNumber(),
BigInteger.longValueExact()default void setIdAsLong(Long id)
JsonrpcMessageConstants.PROPERTY_NAME_ID property with given value.id - new value for JsonrpcMessageConstants.PROPERTY_NAME_ID property.BigInteger.valueOf(long),
setIdAsNumber(BigInteger)default Integer getIdAsInteger()
JsonrpcMessageConstants.PROPERTY_NAME_ID property as an Integer value.JsonrpcMessageConstants.PROPERTY_NAME_ID property; null when hasId() returns false.getIdAsLong(),
StrictMath.toIntExact(long)default void setIdAsInteger(Integer id)
JsonrpcMessageConstants.PROPERTY_NAME_ID property with given value.id - new value for JsonrpcMessageConstants.PROPERTY_NAME_ID property.Integer.longValue(),
setIdAsLong(Long)Copyright © 2019–2020 Jinahya, Inc.. All rights reserved.