1 | package pl.zankowski.iextrading4j.client.sse.manager; | |
2 | ||
3 | import com.google.common.base.MoreObjects; | |
4 | import com.google.common.base.Objects; | |
5 | ||
6 | import javax.ws.rs.core.GenericType; | |
7 | import java.util.Map; | |
8 | ||
9 | public class SseRequest<R> { | |
10 | ||
11 | private final GenericType<R> responseType; | |
12 | private final String path; | |
13 | private final Map<String, String> headerParams; | |
14 | private final Map<String, String> pathParams; | |
15 | private final Map<String, String> queryParams; | |
16 | private final Boolean useSecretToken; | |
17 | ||
18 | public SseRequest( | |
19 | final GenericType<R> responseType, | |
20 | final String path, | |
21 | final Map<String, String> headerParams, | |
22 | final Map<String, String> pathParams, | |
23 | final Map<String, String> queryParams, | |
24 | final Boolean useSecretToken) { | |
25 | this.responseType = responseType; | |
26 | this.path = path; | |
27 | this.headerParams = headerParams; | |
28 | this.pathParams = pathParams; | |
29 | this.queryParams = queryParams; | |
30 | this.useSecretToken = useSecretToken; | |
31 | } | |
32 | ||
33 | public GenericType<R> getResponseType() { | |
34 |
1
1. getResponseType : replaced return value with null for pl/zankowski/iextrading4j/client/sse/manager/SseRequest::getResponseType → KILLED |
return responseType; |
35 | } | |
36 | ||
37 | public String getPath() { | |
38 |
1
1. getPath : replaced return value with "" for pl/zankowski/iextrading4j/client/sse/manager/SseRequest::getPath → KILLED |
return path; |
39 | } | |
40 | ||
41 | public Map<String, String> getHeaderParams() { | |
42 |
1
1. getHeaderParams : replaced return value with null for pl/zankowski/iextrading4j/client/sse/manager/SseRequest::getHeaderParams → KILLED |
return headerParams; |
43 | } | |
44 | ||
45 | public Map<String, String> getPathParams() { | |
46 |
1
1. getPathParams : replaced return value with null for pl/zankowski/iextrading4j/client/sse/manager/SseRequest::getPathParams → KILLED |
return pathParams; |
47 | } | |
48 | ||
49 | public Map<String, String> getQueryParams() { | |
50 |
1
1. getQueryParams : replaced return value with null for pl/zankowski/iextrading4j/client/sse/manager/SseRequest::getQueryParams → KILLED |
return queryParams; |
51 | } | |
52 | ||
53 | public Boolean getUseSecretToken() { | |
54 |
2
1. getUseSecretToken : replaced Boolean return with True for pl/zankowski/iextrading4j/client/sse/manager/SseRequest::getUseSecretToken → SURVIVED 2. getUseSecretToken : replaced Boolean return with False for pl/zankowski/iextrading4j/client/sse/manager/SseRequest::getUseSecretToken → KILLED |
return useSecretToken; |
55 | } | |
56 | ||
57 | @Override | |
58 | public boolean equals(final Object o) { | |
59 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
60 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/client/sse/manager/SseRequest::equals → KILLED |
return true; |
61 | } | |
62 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
63 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/client/sse/manager/SseRequest::equals → KILLED |
return false; |
64 | } | |
65 | final SseRequest<?> that = (SseRequest<?>) o; | |
66 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/client/sse/manager/SseRequest::equals → KILLED |
return Objects.equal(responseType, that.responseType) && |
67 |
1
1. equals : negated conditional → KILLED |
Objects.equal(path, that.path) && |
68 |
1
1. equals : negated conditional → KILLED |
Objects.equal(headerParams, that.headerParams) && |
69 |
1
1. equals : negated conditional → KILLED |
Objects.equal(pathParams, that.pathParams) && |
70 |
1
1. equals : negated conditional → KILLED |
Objects.equal(queryParams, that.queryParams) && |
71 |
1
1. equals : negated conditional → KILLED |
Objects.equal(useSecretToken, that.useSecretToken); |
72 | } | |
73 | ||
74 | @Override | |
75 | public int hashCode() { | |
76 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/client/sse/manager/SseRequest::hashCode → KILLED |
return Objects.hashCode(responseType, path, headerParams, pathParams, queryParams, useSecretToken); |
77 | } | |
78 | ||
79 | @Override | |
80 | public String toString() { | |
81 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/client/sse/manager/SseRequest::toString → KILLED |
return MoreObjects.toStringHelper(this) |
82 | .add("responseType", responseType) | |
83 | .add("path", path) | |
84 | .add("headerParams", headerParams) | |
85 | .add("pathParams", pathParams) | |
86 | .add("queryParams", queryParams) | |
87 | .add("useSecretToken", useSecretToken) | |
88 | .toString(); | |
89 | } | |
90 | } | |
Mutations | ||
34 |
1.1 |
|
38 |
1.1 |
|
42 |
1.1 |
|
46 |
1.1 |
|
50 |
1.1 |
|
54 |
1.1 2.2 |
|
59 |
1.1 |
|
60 |
1.1 |
|
62 |
1.1 2.2 |
|
63 |
1.1 |
|
66 |
1.1 2.2 |
|
67 |
1.1 |
|
68 |
1.1 |
|
69 |
1.1 |
|
70 |
1.1 |
|
71 |
1.1 |
|
76 |
1.1 |
|
81 |
1.1 |