Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | package com.github.theresasogunle; |
||
6 | public class ApiQuery { |
||
7 | |||
8 | final private HashMap<String, Object> queryMap; |
||
|
|||
9 | |||
10 | /** |
||
11 | * Initializes a new query map |
||
12 | */ |
||
13 | public ApiQuery() { |
||
14 | this.queryMap = new HashMap<>(); |
||
15 | } |
||
16 | |||
17 | /** |
||
18 | * Used to add a parameter to the query map |
||
19 | * |
||
20 | * @param key |
||
21 | * @param value |
||
22 | */ |
||
23 | public void putParams(String key, Object value) { |
||
24 | this.queryMap.put(key, value); |
||
25 | } |
||
26 | |||
27 | |||
28 | public HashMap<String, Object> getParams() { |
||
29 | return this.queryMap; |
||
30 | } |
||
33 |
The Java specification lists the customary order.