Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<Variables> |
__TYPE_ARG |
Constructor and Description |
---|
Variables(Object delegate) |
Variables(Variables delegate) |
Modifier and Type | Method and Description |
---|---|
Variables |
addAll(JsonObject json)
Populates with a JSON object:
null are conserved
JsonArray is converted to List
JsonObject is converted to Map
any other value is converted to a string
Note that nested JSON elements are converted to a string, so { "user": { "first_name": "John", "last_name": "Doe", "address" : { "city": "Paris", etc... |
Variables |
clear() |
boolean |
equals(Object o) |
Object |
get(String name) |
Variables |
getDelegate() |
List<String> |
getList(String name) |
Map<String,String> |
getMap(String name) |
String |
getSingle(String name) |
int |
hashCode() |
Set<String> |
names() |
static Variables |
newInstance(Variables arg) |
Variables |
set(String name,
List<String> value)
Set a list variable.
|
Variables |
set(String name,
Map<String,String> value)
Set a map variable.
|
Variables |
set(String name,
String value)
Set a single variable.
|
Variables |
setAll(JsonObject json)
Like
addAll(io.vertx.core.json.JsonObject) but overwrites previous variables. |
String |
toString() |
static Variables |
variables() |
static Variables |
variables(JsonObject json)
Create an instance populated from a JSON object:
null are conserved
JsonArray is converted to List
JsonObject is converted to Map
any other value is converted to a string
Note that nested JSON elements are converted to a string, so { "user": { "first_name": "John", "last_name": "Doe", "address" : { "city": "Paris", etc... |
public static final io.vertx.lang.rx.TypeArg<Variables> __TYPE_ARG
public Variables(Variables delegate)
public Variables(Object delegate)
public Variables getDelegate()
public static Variables variables()
public static Variables variables(JsonObject json)
null
are conservedJsonArray
is converted to List
JsonObject
is converted to Map
json
- the json that populates the returned variablespublic Variables set(String name, String value)
name
- the variable namevalue
- the variable valuepublic Variables set(String name, List<String> value)
name
- the variable namevalue
- the variable valuepublic Variables set(String name, Map<String,String> value)
name
- the variable namevalue
- the variable valuepublic Variables setAll(JsonObject json)
addAll(io.vertx.core.json.JsonObject)
but overwrites previous variables.json
- public Variables addAll(JsonObject json)
null
are conservedJsonArray
is converted to List
JsonObject
is converted to Map
json
- the json that populates the returned variablespublic Variables clear()
public String getSingle(String name)
name
- name
public List<String> getList(String name)
name
- name
public Map<String,String> getMap(String name)
name
- name
Copyright © 2024 Eclipse. All rights reserved.