Package io.vertx.mutiny.uritemplate
Class Variables
- java.lang.Object
-
- io.vertx.mutiny.uritemplate.Variables
-
public class Variables extends Object
Holds a set of name/value pairs where each value can be aString
or aList
or aMap
. NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<Variables>
__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Variables
addAll(io.vertx.core.json.JsonObject json)
Variables
clear()
boolean
equals(Object o)
Object
get(String name)
io.vertx.uritemplate.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(io.vertx.uritemplate.Variables arg)
Variables
set(String name, String value)
Variables
set(String name, List<String> value)
Variables
set(String name, Map<String,String> value)
Variables
setAll(io.vertx.core.json.JsonObject json)
String
toString()
static Variables
variables()
static Variables
variables(io.vertx.core.json.JsonObject json)
-
-
-
Constructor Detail
-
Variables
public Variables(io.vertx.uritemplate.Variables delegate)
-
Variables
public Variables(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.uritemplate.Variables getDelegate()
-
variables
public static Variables variables()
- Returns:
- an empty instance
-
variables
public static Variables variables(io.vertx.core.json.JsonObject json)
- Parameters:
json
- the json that populates the returned variables- Returns:
- an instance populated from a JSON object
-
set
public Variables set(String name, String value)
- Parameters:
name
- the variable namevalue
- the variable value- Returns:
- a reference to this, so the API can be used fluently
-
set
public Variables set(String name, List<String> value)
- Parameters:
name
- the variable namevalue
- the variable value- Returns:
- a reference to this, so the API can be used fluently
-
set
public Variables set(String name, Map<String,String> value)
- Parameters:
name
- the variable namevalue
- the variable value- Returns:
- a reference to this, so the API can be used fluently
-
setAll
public Variables setAll(io.vertx.core.json.JsonObject json)
- Parameters:
json
-- Returns:
- the instance of Variables to chain method calls.
-
addAll
public Variables addAll(io.vertx.core.json.JsonObject json)
- Parameters:
json
- the json that populates the returned variables- Returns:
- a reference to this, so the API can be used fluently
-
clear
public Variables clear()
-
getSingle
public String getSingle(String name)
- Parameters:
name
-- Returns:
- the single value of the variable
name
-
getList
public List<String> getList(String name)
- Parameters:
name
-- Returns:
- the list value of the variable
name
-
getMap
public Map<String,String> getMap(String name)
- Parameters:
name
-- Returns:
- the map value of the variable
name
-
newInstance
public static Variables newInstance(io.vertx.uritemplate.Variables arg)
-
-