1 | package pl.zankowski.iextrading4j.api.stocks.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.math.BigDecimal; | |
10 | ||
11 | public class Intraday implements Serializable { | |
12 | ||
13 | private static final long serialVersionUID = -3518267839991998431L; | |
14 | ||
15 | private final String date; | |
16 | private final String minute; | |
17 | private final String label; | |
18 | private final BigDecimal marketOpen; | |
19 | private final BigDecimal marketClose; | |
20 | private final BigDecimal marketHigh; | |
21 | private final BigDecimal marketLow; | |
22 | private final BigDecimal marketAverage; | |
23 | private final BigDecimal marketVolume; | |
24 | private final BigDecimal marketNotional; | |
25 | private final BigDecimal marketNumberOfTrades; | |
26 | private final BigDecimal marketChangeOverTime; | |
27 | private final BigDecimal high; | |
28 | private final BigDecimal low; | |
29 | private final BigDecimal open; | |
30 | private final BigDecimal close; | |
31 | private final BigDecimal average; | |
32 | private final BigDecimal volume; | |
33 | private final BigDecimal notional; | |
34 | private final BigDecimal numberOfTrades; | |
35 | private final BigDecimal changeOverTime; | |
36 | ||
37 | @JsonCreator | |
38 | public Intraday( | |
39 | @JsonProperty("date") final String date, | |
40 | @JsonProperty("minute") final String minute, | |
41 | @JsonProperty("label") final String label, | |
42 | @JsonProperty("marktOpen") final BigDecimal marketOpen, | |
43 | @JsonProperty("marketClose") final BigDecimal marketClose, | |
44 | @JsonProperty("marktHigh") final BigDecimal marketHigh, | |
45 | @JsonProperty("marketLow") final BigDecimal marketLow, | |
46 | @JsonProperty("marketAverage") final BigDecimal marketAverage, | |
47 | @JsonProperty("marketVolume") final BigDecimal marketVolume, | |
48 | @JsonProperty("marketNotional") final BigDecimal marketNotional, | |
49 | @JsonProperty("marketNumberOfTrades") final BigDecimal marketNumberOfTrades, | |
50 | @JsonProperty("marketChangeOverTime") final BigDecimal marketChangeOverTime, | |
51 | @JsonProperty("high") final BigDecimal high, | |
52 | @JsonProperty("low") final BigDecimal low, | |
53 | @JsonProperty("open") final BigDecimal open, | |
54 | @JsonProperty("close") final BigDecimal close, | |
55 | @JsonProperty("average") final BigDecimal average, | |
56 | @JsonProperty("volume") final BigDecimal volume, | |
57 | @JsonProperty("notional") final BigDecimal notional, | |
58 | @JsonProperty("numberOfTrades") final BigDecimal numberOfTrades, | |
59 | @JsonProperty("changeOverTime") final BigDecimal changeOverTime) { | |
60 | this.date = date; | |
61 | this.minute = minute; | |
62 | this.label = label; | |
63 | this.marketOpen = marketOpen; | |
64 | this.marketClose = marketClose; | |
65 | this.marketHigh = marketHigh; | |
66 | this.marketLow = marketLow; | |
67 | this.marketAverage = marketAverage; | |
68 | this.marketVolume = marketVolume; | |
69 | this.marketNotional = marketNotional; | |
70 | this.marketNumberOfTrades = marketNumberOfTrades; | |
71 | this.marketChangeOverTime = marketChangeOverTime; | |
72 | this.high = high; | |
73 | this.low = low; | |
74 | this.open = open; | |
75 | this.close = close; | |
76 | this.average = average; | |
77 | this.volume = volume; | |
78 | this.notional = notional; | |
79 | this.numberOfTrades = numberOfTrades; | |
80 | this.changeOverTime = changeOverTime; | |
81 | } | |
82 | ||
83 | public String getDate() { | |
84 |
1
1. getDate : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::getDate → KILLED |
return date; |
85 | } | |
86 | ||
87 | public String getMinute() { | |
88 |
1
1. getMinute : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::getMinute → KILLED |
return minute; |
89 | } | |
90 | ||
91 | public String getLabel() { | |
92 |
1
1. getLabel : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::getLabel → KILLED |
return label; |
93 | } | |
94 | ||
95 | public BigDecimal getMarketOpen() { | |
96 |
1
1. getMarketOpen : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::getMarketOpen → KILLED |
return marketOpen; |
97 | } | |
98 | ||
99 | public BigDecimal getMarketClose() { | |
100 |
1
1. getMarketClose : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::getMarketClose → KILLED |
return marketClose; |
101 | } | |
102 | ||
103 | public BigDecimal getMarketHigh() { | |
104 |
1
1. getMarketHigh : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::getMarketHigh → KILLED |
return marketHigh; |
105 | } | |
106 | ||
107 | public BigDecimal getMarketLow() { | |
108 |
1
1. getMarketLow : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::getMarketLow → KILLED |
return marketLow; |
109 | } | |
110 | ||
111 | public BigDecimal getMarketAverage() { | |
112 |
1
1. getMarketAverage : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::getMarketAverage → KILLED |
return marketAverage; |
113 | } | |
114 | ||
115 | public BigDecimal getMarketVolume() { | |
116 |
1
1. getMarketVolume : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::getMarketVolume → KILLED |
return marketVolume; |
117 | } | |
118 | ||
119 | public BigDecimal getMarketNotional() { | |
120 |
1
1. getMarketNotional : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::getMarketNotional → KILLED |
return marketNotional; |
121 | } | |
122 | ||
123 | public BigDecimal getMarketNumberOfTrades() { | |
124 |
1
1. getMarketNumberOfTrades : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::getMarketNumberOfTrades → KILLED |
return marketNumberOfTrades; |
125 | } | |
126 | ||
127 | public BigDecimal getMarketChangeOverTime() { | |
128 |
1
1. getMarketChangeOverTime : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::getMarketChangeOverTime → KILLED |
return marketChangeOverTime; |
129 | } | |
130 | ||
131 | public BigDecimal getHigh() { | |
132 |
1
1. getHigh : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::getHigh → KILLED |
return high; |
133 | } | |
134 | ||
135 | public BigDecimal getLow() { | |
136 |
1
1. getLow : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::getLow → KILLED |
return low; |
137 | } | |
138 | ||
139 | public BigDecimal getOpen() { | |
140 |
1
1. getOpen : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::getOpen → KILLED |
return open; |
141 | } | |
142 | ||
143 | public BigDecimal getClose() { | |
144 |
1
1. getClose : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::getClose → KILLED |
return close; |
145 | } | |
146 | ||
147 | public BigDecimal getAverage() { | |
148 |
1
1. getAverage : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::getAverage → KILLED |
return average; |
149 | } | |
150 | ||
151 | public BigDecimal getVolume() { | |
152 |
1
1. getVolume : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::getVolume → KILLED |
return volume; |
153 | } | |
154 | ||
155 | public BigDecimal getNotional() { | |
156 |
1
1. getNotional : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::getNotional → KILLED |
return notional; |
157 | } | |
158 | ||
159 | public BigDecimal getNumberOfTrades() { | |
160 |
1
1. getNumberOfTrades : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::getNumberOfTrades → KILLED |
return numberOfTrades; |
161 | } | |
162 | ||
163 | public BigDecimal getChangeOverTime() { | |
164 |
1
1. getChangeOverTime : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::getChangeOverTime → KILLED |
return changeOverTime; |
165 | } | |
166 | ||
167 | @Override | |
168 | public boolean equals(final Object o) { | |
169 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
170 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::equals → KILLED |
return true; |
171 | } | |
172 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
173 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::equals → KILLED |
return false; |
174 | } | |
175 | final Intraday intraday = (Intraday) o; | |
176 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::equals → KILLED |
return Objects.equal(date, intraday.date) && |
177 |
1
1. equals : negated conditional → KILLED |
Objects.equal(minute, intraday.minute) && |
178 |
1
1. equals : negated conditional → KILLED |
Objects.equal(label, intraday.label) && |
179 |
1
1. equals : negated conditional → KILLED |
Objects.equal(marketOpen, intraday.marketOpen) && |
180 |
1
1. equals : negated conditional → KILLED |
Objects.equal(marketClose, intraday.marketClose) && |
181 |
1
1. equals : negated conditional → KILLED |
Objects.equal(marketHigh, intraday.marketHigh) && |
182 |
1
1. equals : negated conditional → KILLED |
Objects.equal(marketLow, intraday.marketLow) && |
183 |
1
1. equals : negated conditional → KILLED |
Objects.equal(marketAverage, intraday.marketAverage) && |
184 |
1
1. equals : negated conditional → KILLED |
Objects.equal(marketVolume, intraday.marketVolume) && |
185 |
1
1. equals : negated conditional → KILLED |
Objects.equal(marketNotional, intraday.marketNotional) && |
186 |
1
1. equals : negated conditional → KILLED |
Objects.equal(marketNumberOfTrades, intraday.marketNumberOfTrades) && |
187 |
1
1. equals : negated conditional → KILLED |
Objects.equal(marketChangeOverTime, intraday.marketChangeOverTime) && |
188 |
1
1. equals : negated conditional → KILLED |
Objects.equal(high, intraday.high) && |
189 |
1
1. equals : negated conditional → KILLED |
Objects.equal(low, intraday.low) && |
190 |
1
1. equals : negated conditional → KILLED |
Objects.equal(open, intraday.open) && |
191 |
1
1. equals : negated conditional → KILLED |
Objects.equal(close, intraday.close) && |
192 |
1
1. equals : negated conditional → KILLED |
Objects.equal(average, intraday.average) && |
193 |
1
1. equals : negated conditional → KILLED |
Objects.equal(volume, intraday.volume) && |
194 |
1
1. equals : negated conditional → KILLED |
Objects.equal(notional, intraday.notional) && |
195 |
1
1. equals : negated conditional → KILLED |
Objects.equal(numberOfTrades, intraday.numberOfTrades) && |
196 |
1
1. equals : negated conditional → KILLED |
Objects.equal(changeOverTime, intraday.changeOverTime); |
197 | } | |
198 | ||
199 | @Override | |
200 | public int hashCode() { | |
201 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::hashCode → KILLED |
return Objects.hashCode(date, minute, label, marketOpen, marketClose, marketHigh, |
202 | marketLow, marketAverage, marketVolume, marketNotional, marketNumberOfTrades, | |
203 | marketChangeOverTime, high, low, open, close, average, volume, notional, | |
204 | numberOfTrades, changeOverTime); | |
205 | } | |
206 | ||
207 | @Override | |
208 | public String toString() { | |
209 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Intraday::toString → KILLED |
return MoreObjects.toStringHelper(this) |
210 | .add("date", date) | |
211 | .add("minute", minute) | |
212 | .add("label", label) | |
213 | .add("marketOpen", marketOpen) | |
214 | .add("marketClose", marketClose) | |
215 | .add("marketHigh", marketHigh) | |
216 | .add("marketLow", marketLow) | |
217 | .add("marketAverage", marketAverage) | |
218 | .add("marketVolume", marketVolume) | |
219 | .add("marketNotional", marketNotional) | |
220 | .add("marketNumberOfTrades", marketNumberOfTrades) | |
221 | .add("marketChangeOverTime", marketChangeOverTime) | |
222 | .add("high", high) | |
223 | .add("low", low) | |
224 | .add("open", open) | |
225 | .add("close", close) | |
226 | .add("average", average) | |
227 | .add("volume", volume) | |
228 | .add("notional", notional) | |
229 | .add("numberOfTrades", numberOfTrades) | |
230 | .add("changeOverTime", changeOverTime) | |
231 | .toString(); | |
232 | } | |
233 | ||
234 | } | |
Mutations | ||
84 |
1.1 |
|
88 |
1.1 |
|
92 |
1.1 |
|
96 |
1.1 |
|
100 |
1.1 |
|
104 |
1.1 |
|
108 |
1.1 |
|
112 |
1.1 |
|
116 |
1.1 |
|
120 |
1.1 |
|
124 |
1.1 |
|
128 |
1.1 |
|
132 |
1.1 |
|
136 |
1.1 |
|
140 |
1.1 |
|
144 |
1.1 |
|
148 |
1.1 |
|
152 |
1.1 |
|
156 |
1.1 |
|
160 |
1.1 |
|
164 |
1.1 |
|
169 |
1.1 |
|
170 |
1.1 |
|
172 |
1.1 2.2 |
|
173 |
1.1 |
|
176 |
1.1 2.2 |
|
177 |
1.1 |
|
178 |
1.1 |
|
179 |
1.1 |
|
180 |
1.1 |
|
181 |
1.1 |
|
182 |
1.1 |
|
183 |
1.1 |
|
184 |
1.1 |
|
185 |
1.1 |
|
186 |
1.1 |
|
187 |
1.1 |
|
188 |
1.1 |
|
189 |
1.1 |
|
190 |
1.1 |
|
191 |
1.1 |
|
192 |
1.1 |
|
193 |
1.1 |
|
194 |
1.1 |
|
195 |
1.1 |
|
196 |
1.1 |
|
201 |
1.1 |
|
209 |
1.1 |