1 | package pl.zankowski.iextrading4j.api.stocks; | |
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 DelayedQuote implements Serializable { | |
12 | ||
13 | private static final long serialVersionUID = 7012279461409297611L; | |
14 | ||
15 | private final String symbol; | |
16 | private final BigDecimal delayedPrice; | |
17 | private final BigDecimal delayedSize; | |
18 | private final Long delayedPriceTime; | |
19 | private final BigDecimal high; | |
20 | private final BigDecimal low; | |
21 | private final BigDecimal totalVolume; | |
22 | private final Long processedTime; | |
23 | ||
24 | @JsonCreator | |
25 | public DelayedQuote( | |
26 | @JsonProperty("symbol") final String symbol, | |
27 | @JsonProperty("delayedPrice") final BigDecimal delayedPrice, | |
28 | @JsonProperty("high") final BigDecimal high, | |
29 | @JsonProperty("low") final BigDecimal low, | |
30 | @JsonProperty("delayedSize") final BigDecimal delayedSize, | |
31 | @JsonProperty("delayedPriceTime") final Long delayedPriceTime, | |
32 | @JsonProperty("totalVolume") final BigDecimal totalVolume, | |
33 | @JsonProperty("processedTime") final Long processedTime) { | |
34 | this.symbol = symbol; | |
35 | this.delayedPrice = delayedPrice; | |
36 | this.high = high; | |
37 | this.low = low; | |
38 | this.delayedSize = delayedSize; | |
39 | this.delayedPriceTime = delayedPriceTime; | |
40 | this.totalVolume = totalVolume; | |
41 | this.processedTime = processedTime; | |
42 | } | |
43 | ||
44 | public String getSymbol() { | |
45 |
1
1. getSymbol : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/DelayedQuote::getSymbol → KILLED |
return symbol; |
46 | } | |
47 | ||
48 | public BigDecimal getDelayedPrice() { | |
49 |
1
1. getDelayedPrice : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/DelayedQuote::getDelayedPrice → KILLED |
return delayedPrice; |
50 | } | |
51 | ||
52 | public BigDecimal getHigh() { | |
53 |
1
1. getHigh : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/DelayedQuote::getHigh → KILLED |
return high; |
54 | } | |
55 | ||
56 | public BigDecimal getLow() { | |
57 |
1
1. getLow : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/DelayedQuote::getLow → KILLED |
return low; |
58 | } | |
59 | ||
60 | public BigDecimal getDelayedSize() { | |
61 |
1
1. getDelayedSize : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/DelayedQuote::getDelayedSize → KILLED |
return delayedSize; |
62 | } | |
63 | ||
64 | public Long getDelayedPriceTime() { | |
65 |
1
1. getDelayedPriceTime : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/stocks/DelayedQuote::getDelayedPriceTime → KILLED |
return delayedPriceTime; |
66 | } | |
67 | ||
68 | public BigDecimal getTotalVolume() { | |
69 |
1
1. getTotalVolume : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/DelayedQuote::getTotalVolume → KILLED |
return totalVolume; |
70 | } | |
71 | ||
72 | public Long getProcessedTime() { | |
73 |
1
1. getProcessedTime : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/stocks/DelayedQuote::getProcessedTime → KILLED |
return processedTime; |
74 | } | |
75 | ||
76 | @Override | |
77 | public boolean equals(final Object o) { | |
78 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/DelayedQuote::equals → KILLED |
if (this == o) return true; |
79 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/DelayedQuote::equals → KILLED |
if (o == null || getClass() != o.getClass()) return false; |
80 | final DelayedQuote that = (DelayedQuote) o; | |
81 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/DelayedQuote::equals → KILLED |
return Objects.equal(symbol, that.symbol) && |
82 |
1
1. equals : negated conditional → KILLED |
Objects.equal(delayedPrice, that.delayedPrice) && |
83 |
1
1. equals : negated conditional → KILLED |
Objects.equal(delayedSize, that.delayedSize) && |
84 |
1
1. equals : negated conditional → KILLED |
Objects.equal(delayedPriceTime, that.delayedPriceTime) && |
85 |
1
1. equals : negated conditional → KILLED |
Objects.equal(high, that.high) && |
86 |
1
1. equals : negated conditional → KILLED |
Objects.equal(low, that.low) && |
87 |
1
1. equals : negated conditional → KILLED |
Objects.equal(totalVolume, that.totalVolume) && |
88 |
1
1. equals : negated conditional → KILLED |
Objects.equal(processedTime, that.processedTime); |
89 | } | |
90 | ||
91 | @Override | |
92 | public int hashCode() { | |
93 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/DelayedQuote::hashCode → KILLED |
return Objects.hashCode(symbol, delayedPrice, delayedSize, delayedPriceTime, high, low, totalVolume, processedTime); |
94 | } | |
95 | ||
96 | @Override | |
97 | public String toString() { | |
98 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/DelayedQuote::toString → KILLED |
return MoreObjects.toStringHelper(this) |
99 | .add("symbol", symbol) | |
100 | .add("delayedPrice", delayedPrice) | |
101 | .add("delayedSize", delayedSize) | |
102 | .add("delayedPriceTime", delayedPriceTime) | |
103 | .add("high", high) | |
104 | .add("low", low) | |
105 | .add("totalVolume", totalVolume) | |
106 | .add("processedTime", processedTime) | |
107 | .toString(); | |
108 | } | |
109 | ||
110 | } | |
Mutations | ||
45 |
1.1 |
|
49 |
1.1 |
|
53 |
1.1 |
|
57 |
1.1 |
|
61 |
1.1 |
|
65 |
1.1 |
|
69 |
1.1 |
|
73 |
1.1 |
|
78 |
1.1 2.2 |
|
79 |
1.1 2.2 3.3 |
|
81 |
1.1 2.2 |
|
82 |
1.1 |
|
83 |
1.1 |
|
84 |
1.1 |
|
85 |
1.1 |
|
86 |
1.1 |
|
87 |
1.1 |
|
88 |
1.1 |
|
93 |
1.1 |
|
98 |
1.1 |