1 | package pl.zankowski.iextrading4j.api.refdata.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 FxSymbol implements Serializable { | |
14 | ||
15 | private static final long serialVersionUID = -680240566675889011L; | |
16 | ||
17 | private final List<Currency> currencies; | |
18 | private final List<Pair> pairs; | |
19 | ||
20 | @JsonCreator | |
21 | public FxSymbol( | |
22 | @JsonProperty("currencies") final List<Currency> currencies, | |
23 | @JsonProperty("pairs") final List<Pair> pairs) { | |
24 | this.currencies = immutableList(currencies); | |
25 | this.pairs = immutableList(pairs); | |
26 | } | |
27 | ||
28 | public List<Currency> getCurrencies() { | |
29 |
1
1. getCurrencies : replaced return value with Collections.emptyList for pl/zankowski/iextrading4j/api/refdata/v1/FxSymbol::getCurrencies → KILLED |
return currencies; |
30 | } | |
31 | ||
32 | public List<Pair> getPairs() { | |
33 |
1
1. getPairs : replaced return value with Collections.emptyList for pl/zankowski/iextrading4j/api/refdata/v1/FxSymbol::getPairs → KILLED |
return pairs; |
34 | } | |
35 | ||
36 | @Override | |
37 | public boolean equals(final Object o) { | |
38 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/refdata/v1/FxSymbol::equals → KILLED |
if (this == o) return true; |
39 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/FxSymbol::equals → KILLED |
if (o == null || getClass() != o.getClass()) return false; |
40 | final FxSymbol fxSymbol = (FxSymbol) o; | |
41 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/FxSymbol::equals → KILLED |
return Objects.equal(currencies, fxSymbol.currencies) && |
42 |
1
1. equals : negated conditional → KILLED |
Objects.equal(pairs, fxSymbol.pairs); |
43 | } | |
44 | ||
45 | @Override | |
46 | public int hashCode() { | |
47 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/refdata/v1/FxSymbol::hashCode → KILLED |
return Objects.hashCode(currencies, pairs); |
48 | } | |
49 | ||
50 | @Override | |
51 | public String toString() { | |
52 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/FxSymbol::toString → KILLED |
return MoreObjects.toStringHelper(this) |
53 | .add("currencies", currencies) | |
54 | .add("pairs", pairs) | |
55 | .toString(); | |
56 | } | |
57 | ||
58 | } | |
Mutations | ||
29 |
1.1 |
|
33 |
1.1 |
|
38 |
1.1 2.2 |
|
39 |
1.1 2.2 3.3 |
|
41 |
1.1 2.2 |
|
42 |
1.1 |
|
47 |
1.1 |
|
52 |
1.1 |