Adds a query string element. @param name The name of the element. @param value The value of the element.
(final String name, final String value)
| 71 | * @param value The value of the element. |
| 72 | */ |
| 73 | public void add(final String name, final String value) { |
| 74 | ArrayList<String> values = super.get(name); |
| 75 | if (values == null) { |
| 76 | values = new ArrayList<String>(1); // Often there's only 1 value. |
| 77 | super.put(name, values); |
| 78 | } |
| 79 | values.add(value); |
| 80 | } |
| 81 | |
| 82 | /** |
| 83 | * Returns the first value for the given key, or {@code null}. |
no test coverage detected