1 | package pl.zankowski.iextrading4j.api.stocks.v1; | |
2 | ||
3 | import com.fasterxml.jackson.annotation.JsonCreator; | |
4 | import com.fasterxml.jackson.annotation.JsonProperty; | |
5 | ||
6 | import java.math.BigDecimal; | |
7 | import java.util.Objects; | |
8 | import java.util.StringJoiner; | |
9 | ||
10 | public class InsiderSummary extends BaseData { | |
11 | ||
12 | private static final long serialVersionUID = 8669068160445448149L; | |
13 | ||
14 | private final String fullName; | |
15 | private final BigDecimal netTransacted; | |
16 | private final String reportedTitle; | |
17 | private final BigDecimal totalBought; | |
18 | private final BigDecimal totalSold; | |
19 | ||
20 | @JsonCreator | |
21 | public InsiderSummary( | |
22 | @JsonProperty("symbol") final String symbol, | |
23 | @JsonProperty("id") final String id, | |
24 | @JsonProperty("key") final String key, | |
25 | @JsonProperty("subkey") final String subkey, | |
26 | @JsonProperty("updated") final Long updated, | |
27 | @JsonProperty("date") final Long date, | |
28 | @JsonProperty("fullName") final String fullName, | |
29 | @JsonProperty("netTransacted") final BigDecimal netTransacted, | |
30 | @JsonProperty("reportedTitle") final String reportedTitle, | |
31 | @JsonProperty("totalBought") final BigDecimal totalBought, | |
32 | @JsonProperty("totalSold") final BigDecimal totalSold) { | |
33 | super(symbol, id, key, subkey, updated, date); | |
34 | this.fullName = fullName; | |
35 | this.netTransacted = netTransacted; | |
36 | this.reportedTitle = reportedTitle; | |
37 | this.totalBought = totalBought; | |
38 | this.totalSold = totalSold; | |
39 | } | |
40 | ||
41 | public String getFullName() { | |
42 |
1
1. getFullName : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::getFullName → KILLED |
return fullName; |
43 | } | |
44 | ||
45 | public BigDecimal getNetTransacted() { | |
46 |
1
1. getNetTransacted : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::getNetTransacted → KILLED |
return netTransacted; |
47 | } | |
48 | ||
49 | public String getReportedTitle() { | |
50 |
1
1. getReportedTitle : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::getReportedTitle → KILLED |
return reportedTitle; |
51 | } | |
52 | ||
53 | public BigDecimal getTotalBought() { | |
54 |
1
1. getTotalBought : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::getTotalBought → KILLED |
return totalBought; |
55 | } | |
56 | ||
57 | public BigDecimal getTotalSold() { | |
58 |
1
1. getTotalSold : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::getTotalSold → KILLED |
return totalSold; |
59 | } | |
60 | ||
61 | @Override | |
62 | public boolean equals(final Object o) { | |
63 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
64 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::equals → KILLED |
return true; |
65 | } | |
66 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
67 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::equals → KILLED |
return false; |
68 | } | |
69 |
1
1. equals : negated conditional → KILLED |
if (!super.equals(o)) { |
70 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::equals → KILLED |
return false; |
71 | } | |
72 | final InsiderSummary that = (InsiderSummary) o; | |
73 |
6
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : negated conditional → KILLED 4. equals : negated conditional → KILLED 5. equals : negated conditional → KILLED 6. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::equals → KILLED |
return Objects.equals(fullName, that.fullName) && Objects.equals(netTransacted, that.netTransacted) && Objects.equals(reportedTitle, that.reportedTitle) && Objects.equals(totalBought, that.totalBought) && Objects.equals(totalSold, that.totalSold); |
74 | } | |
75 | ||
76 | @Override | |
77 | public int hashCode() { | |
78 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::hashCode → KILLED |
return Objects.hash(super.hashCode(), fullName, netTransacted, reportedTitle, totalBought, totalSold); |
79 | } | |
80 | ||
81 | @Override | |
82 | public String toString() { | |
83 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::toString → KILLED |
return new StringJoiner(", ", InsiderSummary.class.getSimpleName() + "[", "]") |
84 | .add("fullName='" + fullName + "'") | |
85 | .add("netTransacted=" + netTransacted) | |
86 | .add("reportedTitle='" + reportedTitle + "'") | |
87 | .add("totalBought=" + totalBought) | |
88 | .add("totalSold=" + totalSold) | |
89 | .toString(); | |
90 | } | |
91 | } | |
Mutations | ||
42 |
1.1 |
|
46 |
1.1 |
|
50 |
1.1 |
|
54 |
1.1 |
|
58 |
1.1 |
|
63 |
1.1 |
|
64 |
1.1 |
|
66 |
1.1 2.2 |
|
67 |
1.1 |
|
69 |
1.1 |
|
70 |
1.1 |
|
73 |
1.1 2.2 3.3 4.4 5.5 6.6 |
|
78 |
1.1 |
|
83 |
1.1 |