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.io.Serializable; | |
7 | import java.math.BigDecimal; | |
8 | import java.time.LocalDate; | |
9 | import java.util.Objects; | |
10 | import java.util.StringJoiner; | |
11 | ||
12 | public class Ownership implements Serializable { | |
13 | ||
14 | private static final long serialVersionUID = -90284369606919937L; | |
15 | ||
16 | private final String symbol; | |
17 | private final String id; | |
18 | private final BigDecimal adjHolding; | |
19 | private final BigDecimal adjMv; | |
20 | private final String entityProperName; | |
21 | protected final Long reportDate; | |
22 | private final LocalDate filingDate; | |
23 | private final BigDecimal reportedHolding; | |
24 | private final Long updated; | |
25 | private final Long date; | |
26 | ||
27 | @JsonCreator | |
28 | public Ownership( | |
29 | @JsonProperty("symbol") final String symbol, | |
30 | @JsonProperty("id") final String id, | |
31 | @JsonProperty("adjHolding") final BigDecimal adjHolding, | |
32 | @JsonProperty("adjMv") final BigDecimal adjMv, | |
33 | @JsonProperty("entityProperName") final String entityProperName, | |
34 | @JsonProperty("reportDate") final Long reportDate, | |
35 | @JsonProperty("filingDate") final LocalDate filingDate, | |
36 | @JsonProperty("reportedHolding") final BigDecimal reportedHolding, | |
37 | @JsonProperty("updated") final Long updated, | |
38 | @JsonProperty("date") final Long date) { | |
39 | this.symbol = symbol; | |
40 | this.id = id; | |
41 | this.adjHolding = adjHolding; | |
42 | this.adjMv = adjMv; | |
43 | this.entityProperName = entityProperName; | |
44 | this.reportDate = reportDate; | |
45 | this.filingDate = filingDate; | |
46 | this.reportedHolding = reportedHolding; | |
47 | this.updated = updated; | |
48 | this.date = date; | |
49 | } | |
50 | ||
51 | public String getSymbol() { | |
52 |
1
1. getSymbol : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Ownership::getSymbol → KILLED |
return symbol; |
53 | } | |
54 | ||
55 | public String getId() { | |
56 |
1
1. getId : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Ownership::getId → KILLED |
return id; |
57 | } | |
58 | ||
59 | public BigDecimal getAdjHolding() { | |
60 |
1
1. getAdjHolding : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Ownership::getAdjHolding → KILLED |
return adjHolding; |
61 | } | |
62 | ||
63 | public BigDecimal getAdjMv() { | |
64 |
1
1. getAdjMv : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Ownership::getAdjMv → KILLED |
return adjMv; |
65 | } | |
66 | ||
67 | public String getEntityProperName() { | |
68 |
1
1. getEntityProperName : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Ownership::getEntityProperName → KILLED |
return entityProperName; |
69 | } | |
70 | ||
71 | public Long getReportDate() { | |
72 |
1
1. getReportDate : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/stocks/v1/Ownership::getReportDate → KILLED |
return reportDate; |
73 | } | |
74 | ||
75 | public LocalDate getFilingDate() { | |
76 |
1
1. getFilingDate : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Ownership::getFilingDate → KILLED |
return filingDate; |
77 | } | |
78 | ||
79 | public BigDecimal getReportedHolding() { | |
80 |
1
1. getReportedHolding : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Ownership::getReportedHolding → KILLED |
return reportedHolding; |
81 | } | |
82 | ||
83 | public Long getUpdated() { | |
84 |
1
1. getUpdated : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/stocks/v1/Ownership::getUpdated → KILLED |
return updated; |
85 | } | |
86 | ||
87 | public Long getDate() { | |
88 |
1
1. getDate : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/stocks/v1/Ownership::getDate → KILLED |
return date; |
89 | } | |
90 | ||
91 | @Override | |
92 | public boolean equals(final Object o) { | |
93 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
94 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/v1/Ownership::equals → KILLED |
return true; |
95 | } | |
96 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
97 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/Ownership::equals → KILLED |
return false; |
98 | } | |
99 | final Ownership ownership = (Ownership) o; | |
100 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/Ownership::equals → KILLED |
return Objects.equals(symbol, ownership.symbol) && Objects.equals(id, ownership.id) && |
101 |
1
1. equals : negated conditional → KILLED |
Objects.equals(adjHolding, ownership.adjHolding) && |
102 |
1
1. equals : negated conditional → KILLED |
Objects.equals(adjMv, ownership.adjMv) && |
103 |
1
1. equals : negated conditional → KILLED |
Objects.equals(entityProperName, ownership.entityProperName) && |
104 |
1
1. equals : negated conditional → KILLED |
Objects.equals(reportDate, ownership.reportDate) && |
105 |
1
1. equals : negated conditional → KILLED |
Objects.equals(filingDate, ownership.filingDate) && |
106 |
1
1. equals : negated conditional → KILLED |
Objects.equals(reportedHolding, ownership.reportedHolding) && |
107 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(updated, ownership.updated) && Objects.equals(date, ownership.date); |
108 | } | |
109 | ||
110 | @Override | |
111 | public int hashCode() { | |
112 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/v1/Ownership::hashCode → KILLED |
return Objects.hash(symbol, id, adjHolding, adjMv, entityProperName, reportDate, filingDate, reportedHolding, |
113 | updated, date); | |
114 | } | |
115 | ||
116 | @Override | |
117 | public String toString() { | |
118 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Ownership::toString → KILLED |
return new StringJoiner(", ", Ownership.class.getSimpleName() + "[", "]") |
119 | .add("symbol='" + symbol + "'") | |
120 | .add("id='" + id + "'") | |
121 | .add("adjHolding=" + adjHolding) | |
122 | .add("adjMv=" + adjMv) | |
123 | .add("entityProperName='" + entityProperName + "'") | |
124 | .add("reportDate=" + reportDate) | |
125 | .add("filingDate=" + filingDate) | |
126 | .add("reportedHolding=" + reportedHolding) | |
127 | .add("updated=" + updated) | |
128 | .add("date=" + date) | |
129 | .toString(); | |
130 | } | |
131 | } | |
Mutations | ||
52 |
1.1 |
|
56 |
1.1 |
|
60 |
1.1 |
|
64 |
1.1 |
|
68 |
1.1 |
|
72 |
1.1 |
|
76 |
1.1 |
|
80 |
1.1 |
|
84 |
1.1 |
|
88 |
1.1 |
|
93 |
1.1 |
|
94 |
1.1 |
|
96 |
1.1 2.2 |
|
97 |
1.1 |
|
100 |
1.1 2.2 3.3 |
|
101 |
1.1 |
|
102 |
1.1 |
|
103 |
1.1 |
|
104 |
1.1 |
|
105 |
1.1 |
|
106 |
1.1 |
|
107 |
1.1 2.2 |
|
112 |
1.1 |
|
118 |
1.1 |