1 | package pl.zankowski.iextrading4j.api.market; | |
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 | ||
11 | public class MarketVolume implements Serializable { | |
12 | ||
13 | private static final long serialVersionUID = 3656764769085801435L; | |
14 | ||
15 | private final String mic; | |
16 | private final String tapeId; | |
17 | private final String venueName; | |
18 | private final BigDecimal volume; | |
19 | private final BigDecimal tapeA; | |
20 | private final BigDecimal tapeB; | |
21 | private final BigDecimal tapeC; | |
22 | private final BigDecimal marketPercent; | |
23 | private final Long lastUpdated; | |
24 | ||
25 | @JsonCreator | |
26 | public MarketVolume( | |
27 | @JsonProperty("mic") final String mic, | |
28 | @JsonProperty("tapeId") final String tapeId, | |
29 | @JsonProperty("venueName") final String venueName, | |
30 | @JsonProperty("volume") final BigDecimal volume, | |
31 | @JsonProperty("tapeA") final BigDecimal tapeA, | |
32 | @JsonProperty("tapeB") final BigDecimal tapeB, | |
33 | @JsonProperty("tapeC") final BigDecimal tapeC, | |
34 | @JsonProperty("marketPercent") final BigDecimal marketPercent, | |
35 | @JsonProperty("lastUpdated") final Long lastUpdated) { | |
36 | this.mic = mic; | |
37 | this.tapeId = tapeId; | |
38 | this.venueName = venueName; | |
39 | this.volume = volume; | |
40 | this.tapeA = tapeA; | |
41 | this.tapeB = tapeB; | |
42 | this.tapeC = tapeC; | |
43 | this.marketPercent = marketPercent; | |
44 | this.lastUpdated = lastUpdated; | |
45 | } | |
46 | ||
47 | public String getMic() { | |
48 |
1
1. getMic : replaced return value with "" for pl/zankowski/iextrading4j/api/market/MarketVolume::getMic → KILLED |
return mic; |
49 | } | |
50 | ||
51 | public String getTapeId() { | |
52 |
1
1. getTapeId : replaced return value with "" for pl/zankowski/iextrading4j/api/market/MarketVolume::getTapeId → KILLED |
return tapeId; |
53 | } | |
54 | ||
55 | public String getVenueName() { | |
56 |
1
1. getVenueName : replaced return value with "" for pl/zankowski/iextrading4j/api/market/MarketVolume::getVenueName → KILLED |
return venueName; |
57 | } | |
58 | ||
59 | public BigDecimal getVolume() { | |
60 |
1
1. getVolume : replaced return value with null for pl/zankowski/iextrading4j/api/market/MarketVolume::getVolume → KILLED |
return volume; |
61 | } | |
62 | ||
63 | public BigDecimal getTapeA() { | |
64 |
1
1. getTapeA : replaced return value with null for pl/zankowski/iextrading4j/api/market/MarketVolume::getTapeA → KILLED |
return tapeA; |
65 | } | |
66 | ||
67 | public BigDecimal getTapeB() { | |
68 |
1
1. getTapeB : replaced return value with null for pl/zankowski/iextrading4j/api/market/MarketVolume::getTapeB → KILLED |
return tapeB; |
69 | } | |
70 | ||
71 | public BigDecimal getTapeC() { | |
72 |
1
1. getTapeC : replaced return value with null for pl/zankowski/iextrading4j/api/market/MarketVolume::getTapeC → KILLED |
return tapeC; |
73 | } | |
74 | ||
75 | public BigDecimal getMarketPercent() { | |
76 |
1
1. getMarketPercent : replaced return value with null for pl/zankowski/iextrading4j/api/market/MarketVolume::getMarketPercent → KILLED |
return marketPercent; |
77 | } | |
78 | ||
79 | public Long getLastUpdated() { | |
80 |
1
1. getLastUpdated : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/market/MarketVolume::getLastUpdated → KILLED |
return lastUpdated; |
81 | } | |
82 | ||
83 | @Override | |
84 | public boolean equals(Object o) { | |
85 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/market/MarketVolume::equals → KILLED |
if (this == o) return true; |
86 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/market/MarketVolume::equals → KILLED |
if (o == null || getClass() != o.getClass()) return false; |
87 | MarketVolume that = (MarketVolume) o; | |
88 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/market/MarketVolume::equals → KILLED |
return Objects.equal(mic, that.mic) && |
89 |
1
1. equals : negated conditional → KILLED |
Objects.equal(tapeId, that.tapeId) && |
90 |
1
1. equals : negated conditional → KILLED |
Objects.equal(venueName, that.venueName) && |
91 |
1
1. equals : negated conditional → KILLED |
Objects.equal(volume, that.volume) && |
92 |
1
1. equals : negated conditional → KILLED |
Objects.equal(tapeA, that.tapeA) && |
93 |
1
1. equals : negated conditional → KILLED |
Objects.equal(tapeB, that.tapeB) && |
94 |
1
1. equals : negated conditional → KILLED |
Objects.equal(tapeC, that.tapeC) && |
95 |
1
1. equals : negated conditional → KILLED |
Objects.equal(marketPercent, that.marketPercent) && |
96 |
1
1. equals : negated conditional → KILLED |
Objects.equal(lastUpdated, that.lastUpdated); |
97 | } | |
98 | ||
99 | @Override | |
100 | public int hashCode() { | |
101 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/market/MarketVolume::hashCode → KILLED |
return Objects.hashCode(mic, tapeId, venueName, volume, tapeA, tapeB, |
102 | tapeC, marketPercent, lastUpdated); | |
103 | } | |
104 | ||
105 | @Override | |
106 | public String toString() { | |
107 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/market/MarketVolume::toString → KILLED |
return MoreObjects.toStringHelper(this) |
108 | .add("mic", mic) | |
109 | .add("tapeId", tapeId) | |
110 | .add("venueName", venueName) | |
111 | .add("volume", volume) | |
112 | .add("tapeA", tapeA) | |
113 | .add("tapeB", tapeB) | |
114 | .add("tapeC", tapeC) | |
115 | .add("marketPercent", marketPercent) | |
116 | .add("lastUpdated", lastUpdated) | |
117 | .toString(); | |
118 | } | |
119 | } | |
Mutations | ||
48 |
1.1 |
|
52 |
1.1 |
|
56 |
1.1 |
|
60 |
1.1 |
|
64 |
1.1 |
|
68 |
1.1 |
|
72 |
1.1 |
|
76 |
1.1 |
|
80 |
1.1 |
|
85 |
1.1 2.2 |
|
86 |
1.1 2.2 3.3 |
|
88 |
1.1 2.2 |
|
89 |
1.1 |
|
90 |
1.1 |
|
91 |
1.1 |
|
92 |
1.1 |
|
93 |
1.1 |
|
94 |
1.1 |
|
95 |
1.1 |
|
96 |
1.1 |
|
101 |
1.1 |
|
107 |
1.1 |