Package io.quarkus.panache.common
Class Parameters
java.lang.Object
io.quarkus.panache.common.Parameters
Utility class to build populated `Map` instances. Page instances are mutable (builder-like).
Usage:
Map<String, Object> params = Parameters.with("foo", foo)
.and("bar", bar)
.and("gee", gee)
.map();
- Author:
- Stéphane Épardaud
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd a parameter to thisParameters.map()Constructs an unmodifiableMapwith the current parameters.static ParametersBuild aParameterswith a single parameter.
-
Constructor Details
-
Parameters
public Parameters()
-
-
Method Details
-
and
Add a parameter to thisParameters.- Parameters:
name- name of the parameter to addvalue- value of the parameter to add- Returns:
- this instance, modified.
-
map
Constructs an unmodifiableMapwith the current parameters.- Returns:
- an unmodifiable
Mapwith the current parameters.
-
with
Build aParameterswith a single parameter.- Parameters:
name- name of the first parametervalue- value of the first parameter- Returns:
- a
Parameterswith a single parameter.
-