public interface RequestParameter
| Modifier and Type | Method and Description |
|---|---|
static RequestParameter |
create(Object value) |
Boolean |
getBoolean()
Returns null if value is not a
Boolean, otherwise it returns value |
Double |
getDouble()
|
Float |
getFloat()
|
Integer |
getInteger()
|
JsonArray |
getJsonArray()
Returns null if value is not a
JsonArray, otherwise it returns value |
JsonObject |
getJsonObject()
Returns null if value is not a
JsonObject, otherwise it returns value |
Long |
getLong()
|
String |
getString()
Returns null if value is not a
String, otherwise it returns value |
boolean |
isBoolean()
Returns true if value of this instance is a
Boolean instance |
boolean |
isEmpty()
A parameter is empty if it's an empty string, an empty json object/array or if it's null
|
boolean |
isJsonArray()
Returns true if value of this instance is a
JsonArray instance |
boolean |
isJsonObject()
Returns true if value of this instance is a
JsonObject instance |
boolean |
isNull()
Returns true if value is null
|
boolean |
isNumber()
Returns true if value of this instance is a
Number instance |
boolean |
isString()
Returns true if value of this instance is a
String instance |
RequestParameter |
merge(RequestParameter otherParameter)
Merge this request parameter with another one.
|
Object |
toJson()
Converts deeply this instance into a Json representation
|
String getString()
String, otherwise it returns valueboolean isString()
String instanceInteger getInteger()
Long getLong()
Float getFloat()
Double getDouble()
boolean isNumber()
Number instanceBoolean getBoolean()
Boolean, otherwise it returns valueboolean isBoolean()
Boolean instanceJsonObject getJsonObject()
JsonObject, otherwise it returns valueboolean isJsonObject()
JsonObject instanceJsonArray getJsonArray()
JsonArray, otherwise it returns valueboolean isJsonArray()
JsonArray instanceboolean isNull()
boolean isEmpty()
Object toJson()
RequestParameter merge(RequestParameter otherParameter)
otherParameter - static RequestParameter create(Object value)
Copyright © 2020 Eclipse. All rights reserved.