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 | import com.google.common.base.Objects; | |
7 | ||
8 | import java.io.Serializable; | |
9 | import java.util.List; | |
10 | ||
11 | import static pl.zankowski.iextrading4j.api.util.ListUtil.immutableList; | |
12 | ||
13 | public class CashFlows implements Serializable { | |
14 | ||
15 | private static final long serialVersionUID = -3557377121216732338L; | |
16 | ||
17 | private final String symbol; | |
18 | private final List<CashFlow> cashFlow; | |
19 | ||
20 | @JsonCreator | |
21 | public CashFlows( | |
22 | @JsonProperty("symbol") final String symbol, | |
23 | @JsonProperty("cashflow") final List<CashFlow> cashFlow) { | |
24 | this.symbol = symbol; | |
25 | this.cashFlow = immutableList(cashFlow); | |
26 | } | |
27 | ||
28 | public String getSymbol() { | |
29 |
1
1. getSymbol : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/CashFlows::getSymbol → KILLED |
return symbol; |
30 | } | |
31 | ||
32 | public List<CashFlow> getCashFlow() { | |
33 |
1
1. getCashFlow : replaced return value with Collections.emptyList for pl/zankowski/iextrading4j/api/stocks/v1/CashFlows::getCashFlow → KILLED |
return cashFlow; |
34 | } | |
35 | ||
36 | @Override | |
37 | public boolean equals(final Object o) { | |
38 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
39 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/v1/CashFlows::equals → KILLED |
return true; |
40 | } | |
41 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
42 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/CashFlows::equals → KILLED |
return false; |
43 | } | |
44 | final CashFlows cashFlows = (CashFlows) o; | |
45 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/CashFlows::equals → KILLED |
return Objects.equal(symbol, cashFlows.symbol) && |
46 |
1
1. equals : negated conditional → KILLED |
Objects.equal(cashFlow, cashFlows.cashFlow); |
47 | } | |
48 | ||
49 | @Override | |
50 | public int hashCode() { | |
51 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/v1/CashFlows::hashCode → KILLED |
return Objects.hashCode(symbol, cashFlow); |
52 | } | |
53 | ||
54 | @Override | |
55 | public String toString() { | |
56 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/CashFlows::toString → KILLED |
return MoreObjects.toStringHelper(this) |
57 | .add("symbol", symbol) | |
58 | .add("cashFlow", cashFlow) | |
59 | .toString(); | |
60 | } | |
61 | ||
62 | } | |
Mutations | ||
29 |
1.1 |
|
33 |
1.1 |
|
38 |
1.1 |
|
39 |
1.1 |
|
41 |
1.1 2.2 |
|
42 |
1.1 |
|
45 |
1.1 2.2 |
|
46 |
1.1 |
|
51 |
1.1 |
|
56 |
1.1 |