• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

knowledgepixels / nanodash / 17588871319

09 Sep 2025 04:14PM UTC coverage: 13.618% (-0.03%) from 13.651%
17588871319

push

github

ashleycaselli
docs(ApiResultComponent, QueryRef): add missing javadoc annotations

409 of 3892 branches covered (10.51%)

Branch coverage included in aggregate %.

1086 of 7086 relevant lines covered (15.33%)

0.68 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
src/main/java/com/knowledgepixels/nanodash/QueryRef.java
1
package com.knowledgepixels.nanodash;
2

3
import java.io.Serializable;
4
import java.util.HashMap;
5
import java.util.Map;
6

7
/**
8
 * A reference to a query with optional parameters.
9
 * This class is used to encapsulate the name of the query and any parameters
10
 * that need to be passed to it.
11
 */
12
public class QueryRef implements Serializable {
13

14
    private final String name;
15
    private final Map<String, String> params;
16

17
    /**
18
     * Constructor for QueryRef.
19
     *
20
     * @param name   the name of the query
21
     * @param params a map of parameters for the query
22
     */
23
    public QueryRef(String name, Map<String, String> params) {
×
24
        this.name = name;
×
25
        this.params = params;
×
26
    }
×
27

28
    /**
29
     * Constructor for QueryRef with no parameters.
30
     *
31
     * @param name the name of the query
32
     */
33
    public QueryRef(String name) {
34
        this(name, new HashMap<>());
×
35
    }
×
36

37
    /**
38
     * Constructor for QueryRef with a single parameter.
39
     *
40
     * @param name       the name of the query
41
     * @param paramKey   the key of the parameter
42
     * @param paramValue the value of the parameter
43
     */
44
    public QueryRef(String name, String paramKey, String paramValue) {
45
        this(name);
×
46
        params.put(paramKey, paramValue);
×
47
    }
×
48

49
    /**
50
     * Get the name of the query.
51
     *
52
     * @return the name of the query
53
     */
54
    public String getName() {
55
        return name;
×
56
    }
57

58
    /**
59
     * Get the parameters of the query.
60
     *
61
     * @return a map of parameters
62
     */
63
    public Map<String, String> getParams() {
64
        return params;
×
65
    }
66

67
    /**
68
     * Get a specific parameter by key.
69
     *
70
     * @param key the key of the parameter
71
     * @return the value of the parameter, or null if not found
72
     */
73
    public String getParam(String key) {
74
        return params.get(key);
×
75
    }
76

77
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc