1 | package pl.zankowski.iextrading4j.client.rest.request.stocks; | |
2 | ||
3 | import com.google.common.collect.Maps; | |
4 | import pl.zankowski.iextrading4j.client.rest.request.IRestRequestBuilder; | |
5 | ||
6 | import java.util.Map; | |
7 | ||
8 | public abstract class AbstractChartRequestBuilder<R, B extends IRestRequestBuilder<R>> | |
9 | extends AbstractStocksRequestBuilder<R, B> { | |
10 | ||
11 | protected final Map<String, String> queryParameters = Maps.newHashMap(); | |
12 | ||
13 | public B withChartReset() { | |
14 | this.queryParameters.put("chartReset", Boolean.TRUE.toString()); | |
15 |
1
1. withChartReset : replaced return value with null for pl/zankowski/iextrading4j/client/rest/request/stocks/AbstractChartRequestBuilder::withChartReset → KILLED |
return (B) this; |
16 | } | |
17 | ||
18 | public B withChartSimplify() { | |
19 | this.queryParameters.put("chartSimplify", Boolean.TRUE.toString()); | |
20 |
1
1. withChartSimplify : replaced return value with null for pl/zankowski/iextrading4j/client/rest/request/stocks/AbstractChartRequestBuilder::withChartSimplify → KILLED |
return (B) this; |
21 | } | |
22 | ||
23 | public B withChartInterval(final Integer interval) { | |
24 | this.queryParameters.put("chartInterval", String.valueOf(interval)); | |
25 |
1
1. withChartInterval : replaced return value with null for pl/zankowski/iextrading4j/client/rest/request/stocks/AbstractChartRequestBuilder::withChartInterval → KILLED |
return (B) this; |
26 | } | |
27 | ||
28 | public B withChangeFromClose() { | |
29 | this.queryParameters.put("changeFromClose", Boolean.TRUE.toString()); | |
30 |
1
1. withChangeFromClose : replaced return value with null for pl/zankowski/iextrading4j/client/rest/request/stocks/AbstractChartRequestBuilder::withChangeFromClose → KILLED |
return (B) this; |
31 | } | |
32 | ||
33 | public B withChartLast(final Integer lastElements) { | |
34 | this.queryParameters.put("chartLast", String.valueOf(lastElements)); | |
35 |
1
1. withChartLast : replaced return value with null for pl/zankowski/iextrading4j/client/rest/request/stocks/AbstractChartRequestBuilder::withChartLast → KILLED |
return (B) this; |
36 | } | |
37 | ||
38 | protected Map<String, String> getQueryParameters() { | |
39 |
1
1. getQueryParameters : replaced return value with null for pl/zankowski/iextrading4j/client/rest/request/stocks/AbstractChartRequestBuilder::getQueryParameters → KILLED |
return queryParameters; |
40 | } | |
41 | } | |
Mutations | ||
15 |
1.1 |
|
20 |
1.1 |
|
25 |
1.1 |
|
30 |
1.1 |
|
35 |
1.1 |
|
39 |
1.1 |