1 | package pl.zankowski.iextrading4j.api.marketdata; | |
2 | ||
3 | import com.fasterxml.jackson.annotation.JsonCreator; | |
4 | import com.fasterxml.jackson.annotation.JsonFormat; | |
5 | import com.fasterxml.jackson.annotation.JsonProperty; | |
6 | import com.google.common.base.MoreObjects; | |
7 | import com.google.common.base.Objects; | |
8 | ||
9 | import java.io.Serializable; | |
10 | import java.time.LocalDate; | |
11 | ||
12 | public class HIST implements Serializable { | |
13 | ||
14 | private static final long serialVersionUID = 3711566305339745066L; | |
15 | ||
16 | private final String link; | |
17 | @JsonFormat(pattern = "yyyyMMdd") | |
18 | private final LocalDate date; | |
19 | private final String feed; | |
20 | private final String version; | |
21 | private final String protocol; | |
22 | private final String size; | |
23 | ||
24 | @JsonCreator | |
25 | public HIST( | |
26 | @JsonProperty("link") final String link, | |
27 | @JsonProperty("date") final LocalDate date, | |
28 | @JsonProperty("feed") final String feed, | |
29 | @JsonProperty("version") final String version, | |
30 | @JsonProperty("protocol") final String protocol, | |
31 | @JsonProperty("size") final String size) { | |
32 | this.link = link; | |
33 | this.date = date; | |
34 | this.feed = feed; | |
35 | this.version = version; | |
36 | this.protocol = protocol; | |
37 | this.size = size; | |
38 | } | |
39 | ||
40 | public String getLink() { | |
41 |
1
1. getLink : replaced return value with "" for pl/zankowski/iextrading4j/api/marketdata/HIST::getLink → KILLED |
return link; |
42 | } | |
43 | ||
44 | public LocalDate getDate() { | |
45 |
1
1. getDate : replaced return value with null for pl/zankowski/iextrading4j/api/marketdata/HIST::getDate → KILLED |
return date; |
46 | } | |
47 | ||
48 | public String getFeed() { | |
49 |
1
1. getFeed : replaced return value with "" for pl/zankowski/iextrading4j/api/marketdata/HIST::getFeed → KILLED |
return feed; |
50 | } | |
51 | ||
52 | public String getVersion() { | |
53 |
1
1. getVersion : replaced return value with "" for pl/zankowski/iextrading4j/api/marketdata/HIST::getVersion → KILLED |
return version; |
54 | } | |
55 | ||
56 | public String getProtocol() { | |
57 |
1
1. getProtocol : replaced return value with "" for pl/zankowski/iextrading4j/api/marketdata/HIST::getProtocol → KILLED |
return protocol; |
58 | } | |
59 | ||
60 | public String getSize() { | |
61 |
1
1. getSize : replaced return value with "" for pl/zankowski/iextrading4j/api/marketdata/HIST::getSize → KILLED |
return size; |
62 | } | |
63 | ||
64 | @Override | |
65 | public boolean equals(Object o) { | |
66 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/marketdata/HIST::equals → KILLED |
if (this == o) return true; |
67 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/marketdata/HIST::equals → KILLED |
if (o == null || getClass() != o.getClass()) return false; |
68 | HIST hist = (HIST) o; | |
69 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/marketdata/HIST::equals → KILLED |
return Objects.equal(link, hist.link) && |
70 |
1
1. equals : negated conditional → KILLED |
Objects.equal(date, hist.date) && |
71 |
1
1. equals : negated conditional → KILLED |
Objects.equal(feed, hist.feed) && |
72 |
1
1. equals : negated conditional → KILLED |
Objects.equal(version, hist.version) && |
73 |
1
1. equals : negated conditional → KILLED |
Objects.equal(protocol, hist.protocol) && |
74 |
1
1. equals : negated conditional → KILLED |
Objects.equal(size, hist.size); |
75 | } | |
76 | ||
77 | @Override | |
78 | public int hashCode() { | |
79 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/marketdata/HIST::hashCode → KILLED |
return Objects.hashCode(link, date, feed, version, protocol, size); |
80 | } | |
81 | ||
82 | @Override | |
83 | public String toString() { | |
84 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/marketdata/HIST::toString → KILLED |
return MoreObjects.toStringHelper(this) |
85 | .add("link", link) | |
86 | .add("date", date) | |
87 | .add("feed", feed) | |
88 | .add("version", version) | |
89 | .add("protocol", protocol) | |
90 | .add("size", size) | |
91 | .toString(); | |
92 | } | |
93 | } | |
Mutations | ||
41 |
1.1 |
|
45 |
1.1 |
|
49 |
1.1 |
|
53 |
1.1 |
|
57 |
1.1 |
|
61 |
1.1 |
|
66 |
1.1 2.2 |
|
67 |
1.1 2.2 3.3 |
|
69 |
1.1 2.2 |
|
70 |
1.1 |
|
71 |
1.1 |
|
72 |
1.1 |
|
73 |
1.1 |
|
74 |
1.1 |
|
79 |
1.1 |
|
84 |
1.1 |