MCPcopy Index your code
hub / github.com/amadeus4dev/amadeus-java / with

Method with

src/main/java/com/amadeus/Params.java:35–37  ·  view source on GitHub ↗

Initializes a new Param map with an initial key/value pair. amadeus.get("/foo/bar", Params.with("first_name", "John")); @param key the key for the parameter to send to the API @param value the value for the given key @return the Param object, allowing for convenient chaining

(@NonNull String key, Object value)

Source from the content-addressed store, hash-verified

33 * @return the Param object, allowing for convenient chaining
34 */
35 public static Params with(@NonNull String key, Object value) {
36 return new Params().and(key, value);
37 }
38
39 /**
40 * Adds another key/value pair to the Params map. Automatically

Calls 1

andMethod · 0.80