We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68a3c58 commit ad09f52Copy full SHA for ad09f52
src/main/java/com/amadeus/Params.java
@@ -3,6 +3,7 @@
3
import java.io.UnsupportedEncodingException;
4
import java.net.URLEncoder;
5
import java.util.HashMap;
6
+import java.util.List;
7
import java.util.Map;
8
import java.util.logging.Level;
9
import java.util.logging.Logger;
@@ -48,6 +49,11 @@ public static Params with(@NonNull String key, Object value) {
48
49
* @return the Param object, allowing for convenient chaining
50
*/
51
public Params and(@NonNull String key, Object value) {
52
+ if(value instanceof List){
53
+ @SuppressWarnings("unchecked") List<String> values = (List<String>) value;
54
+ put(key, String.join(",", values));
55
+ return this;
56
+ }
57
put(key, String.valueOf(value));
58
return this;
59
}
0 commit comments