1 | package pl.zankowski.iextrading4j.api.stats; | |
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 RecentStats implements Serializable { | |
13 | ||
14 | private static final long serialVersionUID = -3803040461708066449L; | |
15 | ||
16 | private final LocalDate date; | |
17 | private final BigDecimal volume; | |
18 | private final BigDecimal routedVolume; | |
19 | private final BigDecimal marketShare; | |
20 | private final Boolean isHalfday; | |
21 | private final BigDecimal litVolume; | |
22 | ||
23 | @JsonCreator | |
24 | public RecentStats( | |
25 | @JsonProperty("date") final LocalDate date, | |
26 | @JsonProperty("volume") final BigDecimal volume, | |
27 | @JsonProperty("routedVolume") final BigDecimal routedVolume, | |
28 | @JsonProperty("marketShare") final BigDecimal marketShare, | |
29 | @JsonProperty("isHalfday") final Boolean isHalfday, | |
30 | @JsonProperty("litVolume") final BigDecimal litVolume) { | |
31 | this.date = date; | |
32 | this.volume = volume; | |
33 | this.routedVolume = routedVolume; | |
34 | this.marketShare = marketShare; | |
35 | this.isHalfday = isHalfday; | |
36 | this.litVolume = litVolume; | |
37 | } | |
38 | ||
39 | public LocalDate getDate() { | |
40 |
1
1. getDate : replaced return value with null for pl/zankowski/iextrading4j/api/stats/RecentStats::getDate → KILLED |
return date; |
41 | } | |
42 | ||
43 | public BigDecimal getVolume() { | |
44 |
1
1. getVolume : replaced return value with null for pl/zankowski/iextrading4j/api/stats/RecentStats::getVolume → KILLED |
return volume; |
45 | } | |
46 | ||
47 | public BigDecimal getRoutedVolume() { | |
48 |
1
1. getRoutedVolume : replaced return value with null for pl/zankowski/iextrading4j/api/stats/RecentStats::getRoutedVolume → KILLED |
return routedVolume; |
49 | } | |
50 | ||
51 | public BigDecimal getMarketShare() { | |
52 |
1
1. getMarketShare : replaced return value with null for pl/zankowski/iextrading4j/api/stats/RecentStats::getMarketShare → KILLED |
return marketShare; |
53 | } | |
54 | ||
55 | @JsonProperty("isHalfday") | |
56 | public Boolean isHalfday() { | |
57 |
2
1. isHalfday : replaced Boolean return with True for pl/zankowski/iextrading4j/api/stats/RecentStats::isHalfday → SURVIVED 2. isHalfday : replaced Boolean return with False for pl/zankowski/iextrading4j/api/stats/RecentStats::isHalfday → KILLED |
return isHalfday; |
58 | } | |
59 | ||
60 | public BigDecimal getLitVolume() { | |
61 |
1
1. getLitVolume : replaced return value with null for pl/zankowski/iextrading4j/api/stats/RecentStats::getLitVolume → KILLED |
return litVolume; |
62 | } | |
63 | ||
64 | @Override | |
65 | public boolean equals(Object o) { | |
66 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stats/RecentStats::equals → KILLED |
if (this == o) return true; |
67 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stats/RecentStats::equals → KILLED |
if (o == null || getClass() != o.getClass()) return false; |
68 | RecentStats that = (RecentStats) o; | |
69 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stats/RecentStats::equals → KILLED |
return Objects.equal(date, that.date) && |
70 |
1
1. equals : negated conditional → KILLED |
Objects.equal(volume, that.volume) && |
71 |
1
1. equals : negated conditional → KILLED |
Objects.equal(routedVolume, that.routedVolume) && |
72 |
1
1. equals : negated conditional → KILLED |
Objects.equal(marketShare, that.marketShare) && |
73 |
1
1. equals : negated conditional → KILLED |
Objects.equal(isHalfday, that.isHalfday) && |
74 |
1
1. equals : negated conditional → KILLED |
Objects.equal(litVolume, that.litVolume); |
75 | } | |
76 | ||
77 | @Override | |
78 | public int hashCode() { | |
79 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stats/RecentStats::hashCode → KILLED |
return Objects.hashCode(date, volume, routedVolume, marketShare, isHalfday, litVolume); |
80 | } | |
81 | ||
82 | @Override | |
83 | public String toString() { | |
84 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stats/RecentStats::toString → KILLED |
return MoreObjects.toStringHelper(this) |
85 | .add("date", date) | |
86 | .add("volume", volume) | |
87 | .add("routedVolume", routedVolume) | |
88 | .add("marketShare", marketShare) | |
89 | .add("isHalfday", isHalfday) | |
90 | .add("litVolume", litVolume) | |
91 | .toString(); | |
92 | } | |
93 | } | |
Mutations | ||
40 |
1.1 |
|
44 |
1.1 |
|
48 |
1.1 |
|
52 |
1.1 |
|
57 |
1.1 2.2 |
|
61 |
1.1 |
|
66 |
1.1 2.2 |
|
67 |
1.1 2.2 3.3 |
|
69 |
1.1 2.2 |
|
70 |
1.1 |
|
71 |
1.1 |
|
72 |
1.1 |
|
73 |
1.1 |
|
74 |
1.1 |
|
79 |
1.1 |
|
84 |
1.1 |