1 | package pl.zankowski.iextrading4j.api.stocks; | |
2 | ||
3 | import com.fasterxml.jackson.annotation.JsonCreator; | |
4 | import com.fasterxml.jackson.annotation.JsonProperty; | |
5 | import com.google.common.base.MoreObjects; | |
6 | import com.google.common.base.Objects; | |
7 | ||
8 | import java.io.Serializable; | |
9 | import java.math.BigDecimal; | |
10 | import java.time.LocalDate; | |
11 | ||
12 | public class Financial implements Serializable { | |
13 | ||
14 | private static final long serialVersionUID = -732345058122234058L; | |
15 | ||
16 | private final LocalDate reportDate; | |
17 | private final BigDecimal grossProfit; | |
18 | private final BigDecimal costOfRevenue; | |
19 | private final BigDecimal operatingRevenue; | |
20 | private final BigDecimal totalRevenue; | |
21 | private final BigDecimal operatingIncome; | |
22 | private final BigDecimal netIncome; | |
23 | private final BigDecimal researchAndDevelopment; | |
24 | private final BigDecimal operatingExpense; | |
25 | private final BigDecimal currentAssets; | |
26 | private final BigDecimal totalAssets; | |
27 | private final BigDecimal totalLiabilities; | |
28 | private final BigDecimal currentCash; | |
29 | private final BigDecimal currentDebt; | |
30 | private final BigDecimal totalCash; | |
31 | private final BigDecimal totalDebt; | |
32 | private final BigDecimal shareholderEquity; | |
33 | private final BigDecimal cashChange; | |
34 | private final BigDecimal cashFlow; | |
35 | private final String operatingGainsLosses; | |
36 | ||
37 | @JsonCreator | |
38 | public Financial( | |
39 | @JsonProperty("reportDate") final LocalDate reportDate, | |
40 | @JsonProperty("grossProfit") final BigDecimal grossProfit, | |
41 | @JsonProperty("costOfRevenue") final BigDecimal costOfRevenue, | |
42 | @JsonProperty("operatingRevenue") final BigDecimal operatingRevenue, | |
43 | @JsonProperty("totalRevenue") final BigDecimal totalRevenue, | |
44 | @JsonProperty("operatingIncome") final BigDecimal operatingIncome, | |
45 | @JsonProperty("netIncome") final BigDecimal netIncome, | |
46 | @JsonProperty("researchAndDevelopment") final BigDecimal researchAndDevelopment, | |
47 | @JsonProperty("operatingExpense") final BigDecimal operatingExpense, | |
48 | @JsonProperty("currentAssets") final BigDecimal currentAssets, | |
49 | @JsonProperty("totalAssets") final BigDecimal totalAssets, | |
50 | @JsonProperty("totalLiabilities") final BigDecimal totalLiabilities, | |
51 | @JsonProperty("currentCash") final BigDecimal currentCash, | |
52 | @JsonProperty("currentDebt") final BigDecimal currentDebt, | |
53 | @JsonProperty("totalCash") final BigDecimal totalCash, | |
54 | @JsonProperty("totalDebt") final BigDecimal totalDebt, | |
55 | @JsonProperty("shareholderEquity") final BigDecimal shareholderEquity, | |
56 | @JsonProperty("cashChange") final BigDecimal cashChange, | |
57 | @JsonProperty("cashFlow") final BigDecimal cashFlow, | |
58 | @JsonProperty("operatingGainsLosses") final String operatingGainsLosses) { | |
59 | this.reportDate = reportDate; | |
60 | this.grossProfit = grossProfit; | |
61 | this.costOfRevenue = costOfRevenue; | |
62 | this.operatingRevenue = operatingRevenue; | |
63 | this.totalRevenue = totalRevenue; | |
64 | this.operatingIncome = operatingIncome; | |
65 | this.netIncome = netIncome; | |
66 | this.researchAndDevelopment = researchAndDevelopment; | |
67 | this.operatingExpense = operatingExpense; | |
68 | this.currentAssets = currentAssets; | |
69 | this.totalAssets = totalAssets; | |
70 | this.totalLiabilities = totalLiabilities; | |
71 | this.currentCash = currentCash; | |
72 | this.currentDebt = currentDebt; | |
73 | this.totalCash = totalCash; | |
74 | this.totalDebt = totalDebt; | |
75 | this.shareholderEquity = shareholderEquity; | |
76 | this.cashChange = cashChange; | |
77 | this.cashFlow = cashFlow; | |
78 | this.operatingGainsLosses = operatingGainsLosses; | |
79 | } | |
80 | ||
81 | public LocalDate getReportDate() { | |
82 |
1
1. getReportDate : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Financial::getReportDate → KILLED |
return reportDate; |
83 | } | |
84 | ||
85 | public BigDecimal getGrossProfit() { | |
86 |
1
1. getGrossProfit : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Financial::getGrossProfit → KILLED |
return grossProfit; |
87 | } | |
88 | ||
89 | public BigDecimal getCostOfRevenue() { | |
90 |
1
1. getCostOfRevenue : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Financial::getCostOfRevenue → KILLED |
return costOfRevenue; |
91 | } | |
92 | ||
93 | public BigDecimal getOperatingRevenue() { | |
94 |
1
1. getOperatingRevenue : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Financial::getOperatingRevenue → KILLED |
return operatingRevenue; |
95 | } | |
96 | ||
97 | public BigDecimal getTotalRevenue() { | |
98 |
1
1. getTotalRevenue : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Financial::getTotalRevenue → KILLED |
return totalRevenue; |
99 | } | |
100 | ||
101 | public BigDecimal getOperatingIncome() { | |
102 |
1
1. getOperatingIncome : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Financial::getOperatingIncome → KILLED |
return operatingIncome; |
103 | } | |
104 | ||
105 | public BigDecimal getNetIncome() { | |
106 |
1
1. getNetIncome : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Financial::getNetIncome → KILLED |
return netIncome; |
107 | } | |
108 | ||
109 | public BigDecimal getResearchAndDevelopment() { | |
110 |
1
1. getResearchAndDevelopment : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Financial::getResearchAndDevelopment → KILLED |
return researchAndDevelopment; |
111 | } | |
112 | ||
113 | public BigDecimal getOperatingExpense() { | |
114 |
1
1. getOperatingExpense : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Financial::getOperatingExpense → KILLED |
return operatingExpense; |
115 | } | |
116 | ||
117 | public BigDecimal getCurrentAssets() { | |
118 |
1
1. getCurrentAssets : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Financial::getCurrentAssets → KILLED |
return currentAssets; |
119 | } | |
120 | ||
121 | public BigDecimal getTotalAssets() { | |
122 |
1
1. getTotalAssets : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Financial::getTotalAssets → KILLED |
return totalAssets; |
123 | } | |
124 | ||
125 | public BigDecimal getTotalLiabilities() { | |
126 |
1
1. getTotalLiabilities : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Financial::getTotalLiabilities → KILLED |
return totalLiabilities; |
127 | } | |
128 | ||
129 | public BigDecimal getCurrentCash() { | |
130 |
1
1. getCurrentCash : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Financial::getCurrentCash → KILLED |
return currentCash; |
131 | } | |
132 | ||
133 | public BigDecimal getCurrentDebt() { | |
134 |
1
1. getCurrentDebt : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Financial::getCurrentDebt → KILLED |
return currentDebt; |
135 | } | |
136 | ||
137 | public BigDecimal getTotalCash() { | |
138 |
1
1. getTotalCash : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Financial::getTotalCash → KILLED |
return totalCash; |
139 | } | |
140 | ||
141 | public BigDecimal getTotalDebt() { | |
142 |
1
1. getTotalDebt : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Financial::getTotalDebt → KILLED |
return totalDebt; |
143 | } | |
144 | ||
145 | public BigDecimal getShareholderEquity() { | |
146 |
1
1. getShareholderEquity : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Financial::getShareholderEquity → KILLED |
return shareholderEquity; |
147 | } | |
148 | ||
149 | public BigDecimal getCashChange() { | |
150 |
1
1. getCashChange : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Financial::getCashChange → KILLED |
return cashChange; |
151 | } | |
152 | ||
153 | public BigDecimal getCashFlow() { | |
154 |
1
1. getCashFlow : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Financial::getCashFlow → KILLED |
return cashFlow; |
155 | } | |
156 | ||
157 | public String getOperatingGainsLosses() { | |
158 |
1
1. getOperatingGainsLosses : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Financial::getOperatingGainsLosses → KILLED |
return operatingGainsLosses; |
159 | } | |
160 | ||
161 | @Override | |
162 | public boolean equals(Object o) { | |
163 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/Financial::equals → KILLED |
if (this == o) return true; |
164 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/Financial::equals → KILLED |
if (o == null || getClass() != o.getClass()) return false; |
165 | Financial financial = (Financial) o; | |
166 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/Financial::equals → KILLED |
return Objects.equal(reportDate, financial.reportDate) && |
167 |
1
1. equals : negated conditional → KILLED |
Objects.equal(grossProfit, financial.grossProfit) && |
168 |
1
1. equals : negated conditional → KILLED |
Objects.equal(costOfRevenue, financial.costOfRevenue) && |
169 |
1
1. equals : negated conditional → KILLED |
Objects.equal(operatingRevenue, financial.operatingRevenue) && |
170 |
1
1. equals : negated conditional → KILLED |
Objects.equal(totalRevenue, financial.totalRevenue) && |
171 |
1
1. equals : negated conditional → KILLED |
Objects.equal(operatingIncome, financial.operatingIncome) && |
172 |
1
1. equals : negated conditional → KILLED |
Objects.equal(netIncome, financial.netIncome) && |
173 |
1
1. equals : negated conditional → KILLED |
Objects.equal(researchAndDevelopment, financial.researchAndDevelopment) && |
174 |
1
1. equals : negated conditional → KILLED |
Objects.equal(operatingExpense, financial.operatingExpense) && |
175 |
1
1. equals : negated conditional → KILLED |
Objects.equal(currentAssets, financial.currentAssets) && |
176 |
1
1. equals : negated conditional → KILLED |
Objects.equal(totalAssets, financial.totalAssets) && |
177 |
1
1. equals : negated conditional → KILLED |
Objects.equal(totalLiabilities, financial.totalLiabilities) && |
178 |
1
1. equals : negated conditional → KILLED |
Objects.equal(currentCash, financial.currentCash) && |
179 |
1
1. equals : negated conditional → KILLED |
Objects.equal(currentDebt, financial.currentDebt) && |
180 |
1
1. equals : negated conditional → KILLED |
Objects.equal(totalCash, financial.totalCash) && |
181 |
1
1. equals : negated conditional → KILLED |
Objects.equal(totalDebt, financial.totalDebt) && |
182 |
1
1. equals : negated conditional → KILLED |
Objects.equal(shareholderEquity, financial.shareholderEquity) && |
183 |
1
1. equals : negated conditional → KILLED |
Objects.equal(cashChange, financial.cashChange) && |
184 |
1
1. equals : negated conditional → KILLED |
Objects.equal(cashFlow, financial.cashFlow) && |
185 |
1
1. equals : negated conditional → KILLED |
Objects.equal(operatingGainsLosses, financial.operatingGainsLosses); |
186 | } | |
187 | ||
188 | @Override | |
189 | public int hashCode() { | |
190 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/Financial::hashCode → KILLED |
return Objects.hashCode(reportDate, grossProfit, costOfRevenue, operatingRevenue, |
191 | totalRevenue, operatingIncome, netIncome, researchAndDevelopment, operatingExpense, | |
192 | currentAssets, totalAssets, totalLiabilities, currentCash, currentDebt, totalCash, | |
193 | totalDebt, shareholderEquity, cashChange, cashFlow, operatingGainsLosses); | |
194 | } | |
195 | ||
196 | @Override | |
197 | public String toString() { | |
198 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Financial::toString → KILLED |
return MoreObjects.toStringHelper(this) |
199 | .add("reportDate", reportDate) | |
200 | .add("grossProfit", grossProfit) | |
201 | .add("costOfRevenue", costOfRevenue) | |
202 | .add("operatingRevenue", operatingRevenue) | |
203 | .add("totalRevenue", totalRevenue) | |
204 | .add("operatingIncome", operatingIncome) | |
205 | .add("netIncome", netIncome) | |
206 | .add("researchAndDevelopment", researchAndDevelopment) | |
207 | .add("operatingExpense", operatingExpense) | |
208 | .add("currentAssets", currentAssets) | |
209 | .add("totalAssets", totalAssets) | |
210 | .add("totalLiabilities", totalLiabilities) | |
211 | .add("currentCash", currentCash) | |
212 | .add("currentDebt", currentDebt) | |
213 | .add("totalCash", totalCash) | |
214 | .add("totalDebt", totalDebt) | |
215 | .add("shareholderEquity", shareholderEquity) | |
216 | .add("cashChange", cashChange) | |
217 | .add("cashFlow", cashFlow) | |
218 | .add("operatingGainsLosses", operatingGainsLosses) | |
219 | .toString(); | |
220 | } | |
221 | } | |
Mutations | ||
82 |
1.1 |
|
86 |
1.1 |
|
90 |
1.1 |
|
94 |
1.1 |
|
98 |
1.1 |
|
102 |
1.1 |
|
106 |
1.1 |
|
110 |
1.1 |
|
114 |
1.1 |
|
118 |
1.1 |
|
122 |
1.1 |
|
126 |
1.1 |
|
130 |
1.1 |
|
134 |
1.1 |
|
138 |
1.1 |
|
142 |
1.1 |
|
146 |
1.1 |
|
150 |
1.1 |
|
154 |
1.1 |
|
158 |
1.1 |
|
163 |
1.1 2.2 |
|
164 |
1.1 2.2 3.3 |
|
166 |
1.1 2.2 |
|
167 |
1.1 |
|
168 |
1.1 |
|
169 |
1.1 |
|
170 |
1.1 |
|
171 |
1.1 |
|
172 |
1.1 |
|
173 |
1.1 |
|
174 |
1.1 |
|
175 |
1.1 |
|
176 |
1.1 |
|
177 |
1.1 |
|
178 |
1.1 |
|
179 |
1.1 |
|
180 |
1.1 |
|
181 |
1.1 |
|
182 |
1.1 |
|
183 |
1.1 |
|
184 |
1.1 |
|
185 |
1.1 |
|
190 |
1.1 |
|
198 |
1.1 |