1 | package pl.zankowski.iextrading4j.api.stocks.v1; | |
2 | ||
3 | import com.fasterxml.jackson.annotation.JsonCreator; | |
4 | import com.fasterxml.jackson.annotation.JsonProperty; | |
5 | import com.google.common.base.MoreObjects; | |
6 | ||
7 | import java.math.BigDecimal; | |
8 | import java.time.LocalDate; | |
9 | import java.util.Objects; | |
10 | ||
11 | public class CashFlow extends Report { | |
12 | ||
13 | private static final Long serialVersionUID = 3659383763381838960L; | |
14 | ||
15 | private final BigDecimal netIncome; | |
16 | private final BigDecimal depreciation; | |
17 | private final BigDecimal changesInReceivables; | |
18 | private final BigDecimal changesInInventories; | |
19 | private final BigDecimal cashChange; | |
20 | private final BigDecimal cashFlow; | |
21 | private final BigDecimal capitalExpenditures; | |
22 | private final BigDecimal investments; | |
23 | private final BigDecimal investingActivityOther; | |
24 | private final BigDecimal totalInvestingCashFlows; | |
25 | private final BigDecimal dividendsPaid; | |
26 | private final BigDecimal netBorrowings; | |
27 | private final BigDecimal otherFinancingCashFlows; | |
28 | private final BigDecimal cashFlowFinancing; | |
29 | private final BigDecimal exchangeRateEffect; | |
30 | ||
31 | @JsonCreator | |
32 | public CashFlow( | |
33 | @JsonProperty("symbol") final String symbol, | |
34 | @JsonProperty("id") final String id, | |
35 | @JsonProperty("key") final String key, | |
36 | @JsonProperty("subkey") final String subkey, | |
37 | @JsonProperty("updated") final Long updated, | |
38 | @JsonProperty("date") final Long date, | |
39 | @JsonProperty("reportDate") final LocalDate reportDate, | |
40 | @JsonProperty("fiscalDate") final LocalDate fiscalDate, | |
41 | @JsonProperty("currency") final String currency, | |
42 | @JsonProperty("netIncome") final BigDecimal netIncome, | |
43 | @JsonProperty("depreciation") final BigDecimal depreciation, | |
44 | @JsonProperty("changesInReceivables") final BigDecimal changesInReceivables, | |
45 | @JsonProperty("changesInInventories") final BigDecimal changesInInventories, | |
46 | @JsonProperty("cashChange") final BigDecimal cashChange, | |
47 | @JsonProperty("cashFlow") final BigDecimal cashFlow, | |
48 | @JsonProperty("capitalExpenditures") final BigDecimal capitalExpenditures, | |
49 | @JsonProperty("investments") final BigDecimal investments, | |
50 | @JsonProperty("investingActivityOther") final BigDecimal investingActivityOther, | |
51 | @JsonProperty("totalInvestingCashFlows") final BigDecimal totalInvestingCashFlows, | |
52 | @JsonProperty("dividendsPaid") final BigDecimal dividendsPaid, | |
53 | @JsonProperty("netBorrowings") final BigDecimal netBorrowings, | |
54 | @JsonProperty("otherFinancingCashFlows") final BigDecimal otherFinancingCashFlows, | |
55 | @JsonProperty("cashFlowFinancing") final BigDecimal cashFlowFinancing, | |
56 | @JsonProperty("exchangeRateEffect") final BigDecimal exchangeRateEffect, | |
57 | @JsonProperty("filingType") final String filingType, | |
58 | @JsonProperty("fiscalQuarter") final BigDecimal fiscalQuarter, | |
59 | @JsonProperty("fiscalYear") final BigDecimal fiscalYear) { | |
60 | super(symbol, id, key, subkey, updated, reportDate, filingType, fiscalDate, fiscalQuarter, fiscalYear, | |
61 | currency, date); | |
62 | this.netIncome = netIncome; | |
63 | this.depreciation = depreciation; | |
64 | this.changesInReceivables = changesInReceivables; | |
65 | this.changesInInventories = changesInInventories; | |
66 | this.cashChange = cashChange; | |
67 | this.cashFlow = cashFlow; | |
68 | this.capitalExpenditures = capitalExpenditures; | |
69 | this.investments = investments; | |
70 | this.investingActivityOther = investingActivityOther; | |
71 | this.totalInvestingCashFlows = totalInvestingCashFlows; | |
72 | this.dividendsPaid = dividendsPaid; | |
73 | this.netBorrowings = netBorrowings; | |
74 | this.otherFinancingCashFlows = otherFinancingCashFlows; | |
75 | this.cashFlowFinancing = cashFlowFinancing; | |
76 | this.exchangeRateEffect = exchangeRateEffect; | |
77 | } | |
78 | ||
79 | public BigDecimal getNetIncome() { | |
80 |
1
1. getNetIncome : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/CashFlow::getNetIncome → KILLED |
return netIncome; |
81 | } | |
82 | ||
83 | public BigDecimal getDepreciation() { | |
84 |
1
1. getDepreciation : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/CashFlow::getDepreciation → KILLED |
return depreciation; |
85 | } | |
86 | ||
87 | public BigDecimal getChangesInReceivables() { | |
88 |
1
1. getChangesInReceivables : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/CashFlow::getChangesInReceivables → KILLED |
return changesInReceivables; |
89 | } | |
90 | ||
91 | public BigDecimal getChangesInInventories() { | |
92 |
1
1. getChangesInInventories : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/CashFlow::getChangesInInventories → KILLED |
return changesInInventories; |
93 | } | |
94 | ||
95 | public BigDecimal getCashChange() { | |
96 |
1
1. getCashChange : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/CashFlow::getCashChange → KILLED |
return cashChange; |
97 | } | |
98 | ||
99 | public BigDecimal getCashFlow() { | |
100 |
1
1. getCashFlow : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/CashFlow::getCashFlow → KILLED |
return cashFlow; |
101 | } | |
102 | ||
103 | public BigDecimal getCapitalExpenditures() { | |
104 |
1
1. getCapitalExpenditures : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/CashFlow::getCapitalExpenditures → KILLED |
return capitalExpenditures; |
105 | } | |
106 | ||
107 | public BigDecimal getInvestments() { | |
108 |
1
1. getInvestments : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/CashFlow::getInvestments → KILLED |
return investments; |
109 | } | |
110 | ||
111 | public BigDecimal getInvestingActivityOther() { | |
112 |
1
1. getInvestingActivityOther : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/CashFlow::getInvestingActivityOther → KILLED |
return investingActivityOther; |
113 | } | |
114 | ||
115 | public BigDecimal getTotalInvestingCashFlows() { | |
116 |
1
1. getTotalInvestingCashFlows : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/CashFlow::getTotalInvestingCashFlows → KILLED |
return totalInvestingCashFlows; |
117 | } | |
118 | ||
119 | public BigDecimal getDividendsPaid() { | |
120 |
1
1. getDividendsPaid : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/CashFlow::getDividendsPaid → KILLED |
return dividendsPaid; |
121 | } | |
122 | ||
123 | public BigDecimal getNetBorrowings() { | |
124 |
1
1. getNetBorrowings : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/CashFlow::getNetBorrowings → KILLED |
return netBorrowings; |
125 | } | |
126 | ||
127 | public BigDecimal getOtherFinancingCashFlows() { | |
128 |
1
1. getOtherFinancingCashFlows : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/CashFlow::getOtherFinancingCashFlows → KILLED |
return otherFinancingCashFlows; |
129 | } | |
130 | ||
131 | public BigDecimal getCashFlowFinancing() { | |
132 |
1
1. getCashFlowFinancing : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/CashFlow::getCashFlowFinancing → KILLED |
return cashFlowFinancing; |
133 | } | |
134 | ||
135 | public BigDecimal getExchangeRateEffect() { | |
136 |
1
1. getExchangeRateEffect : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/CashFlow::getExchangeRateEffect → KILLED |
return exchangeRateEffect; |
137 | } | |
138 | ||
139 | @Override | |
140 | public boolean equals(final Object o) { | |
141 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
142 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/v1/CashFlow::equals → KILLED |
return true; |
143 | } | |
144 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
145 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/CashFlow::equals → KILLED |
return false; |
146 | } | |
147 |
1
1. equals : negated conditional → KILLED |
if (!super.equals(o)) { |
148 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/CashFlow::equals → KILLED |
return false; |
149 | } | |
150 | final CashFlow cashFlow1 = (CashFlow) o; | |
151 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/CashFlow::equals → KILLED |
return Objects.equals(netIncome, cashFlow1.netIncome) && |
152 |
1
1. equals : negated conditional → KILLED |
Objects.equals(depreciation, cashFlow1.depreciation) && |
153 |
1
1. equals : negated conditional → KILLED |
Objects.equals(changesInReceivables, cashFlow1.changesInReceivables) && |
154 |
1
1. equals : negated conditional → KILLED |
Objects.equals(changesInInventories, cashFlow1.changesInInventories) && |
155 |
1
1. equals : negated conditional → KILLED |
Objects.equals(cashChange, cashFlow1.cashChange) && |
156 |
1
1. equals : negated conditional → KILLED |
Objects.equals(cashFlow, cashFlow1.cashFlow) && |
157 |
1
1. equals : negated conditional → KILLED |
Objects.equals(capitalExpenditures, cashFlow1.capitalExpenditures) && |
158 |
1
1. equals : negated conditional → KILLED |
Objects.equals(investments, cashFlow1.investments) && |
159 |
1
1. equals : negated conditional → KILLED |
Objects.equals(investingActivityOther, cashFlow1.investingActivityOther) && |
160 |
1
1. equals : negated conditional → KILLED |
Objects.equals(totalInvestingCashFlows, cashFlow1.totalInvestingCashFlows) && |
161 |
1
1. equals : negated conditional → KILLED |
Objects.equals(dividendsPaid, cashFlow1.dividendsPaid) && |
162 |
1
1. equals : negated conditional → KILLED |
Objects.equals(netBorrowings, cashFlow1.netBorrowings) && |
163 |
1
1. equals : negated conditional → KILLED |
Objects.equals(otherFinancingCashFlows, cashFlow1.otherFinancingCashFlows) && |
164 |
1
1. equals : negated conditional → KILLED |
Objects.equals(cashFlowFinancing, cashFlow1.cashFlowFinancing) && |
165 |
1
1. equals : negated conditional → KILLED |
Objects.equals(exchangeRateEffect, cashFlow1.exchangeRateEffect); |
166 | } | |
167 | ||
168 | @Override | |
169 | public int hashCode() { | |
170 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/v1/CashFlow::hashCode → KILLED |
return Objects.hash(super.hashCode(), netIncome, depreciation, changesInReceivables, changesInInventories, |
171 | cashChange, cashFlow, capitalExpenditures, investments, investingActivityOther, totalInvestingCashFlows, | |
172 | dividendsPaid, netBorrowings, otherFinancingCashFlows, cashFlowFinancing, exchangeRateEffect); | |
173 | } | |
174 | ||
175 | @Override | |
176 | public String toString() { | |
177 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/CashFlow::toString → KILLED |
return MoreObjects.toStringHelper(this) |
178 | .add("netIncome", netIncome) | |
179 | .add("depreciation", depreciation) | |
180 | .add("changesInReceivables", changesInReceivables) | |
181 | .add("changesInInventories", changesInInventories) | |
182 | .add("cashChange", cashChange) | |
183 | .add("cashFlow", cashFlow) | |
184 | .add("capitalExpenditures", capitalExpenditures) | |
185 | .add("investments", investments) | |
186 | .add("investingActivityOther", investingActivityOther) | |
187 | .add("totalInvestingCashFlows", totalInvestingCashFlows) | |
188 | .add("dividendsPaid", dividendsPaid) | |
189 | .add("netBorrowings", netBorrowings) | |
190 | .add("otherFinancingCashFlows", otherFinancingCashFlows) | |
191 | .add("cashFlowFinancing", cashFlowFinancing) | |
192 | .add("exchangeRateEffect", exchangeRateEffect) | |
193 | .toString(); | |
194 | } | |
195 | ||
196 | } | |
Mutations | ||
80 |
1.1 |
|
84 |
1.1 |
|
88 |
1.1 |
|
92 |
1.1 |
|
96 |
1.1 |
|
100 |
1.1 |
|
104 |
1.1 |
|
108 |
1.1 |
|
112 |
1.1 |
|
116 |
1.1 |
|
120 |
1.1 |
|
124 |
1.1 |
|
128 |
1.1 |
|
132 |
1.1 |
|
136 |
1.1 |
|
141 |
1.1 |
|
142 |
1.1 |
|
144 |
1.1 2.2 |
|
145 |
1.1 |
|
147 |
1.1 |
|
148 |
1.1 |
|
151 |
1.1 2.2 |
|
152 |
1.1 |
|
153 |
1.1 |
|
154 |
1.1 |
|
155 |
1.1 |
|
156 |
1.1 |
|
157 |
1.1 |
|
158 |
1.1 |
|
159 |
1.1 |
|
160 |
1.1 |
|
161 |
1.1 |
|
162 |
1.1 |
|
163 |
1.1 |
|
164 |
1.1 |
|
165 |
1.1 |
|
170 |
1.1 |
|
177 |
1.1 |