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