| 1 | package pl.zankowski.iextrading4j.api.stocks; | |
| 2 | ||
| 3 | import com.fasterxml.jackson.annotation.JsonCreator; | |
| 4 | import com.fasterxml.jackson.annotation.JsonProperty; | |
| 5 | ||
| 6 | import java.io.Serializable; | |
| 7 | import java.math.BigDecimal; | |
| 8 | import java.util.Objects; | |
| 9 | import java.util.StringJoiner; | |
| 10 | ||
| 11 | public class TimeSeries implements Serializable { | |
| 12 | ||
| 13 | private static final long serialVersionUID = -5513479374604990501L; | |
| 14 | ||
| 15 | private final String symbol; | |
| 16 | private final String id; | |
| 17 | private final String key; | |
| 18 | private final String subkey; | |
| 19 | private final Long updated; | |
| 20 | private final String date; | |
| 21 | private final BigDecimal open; | |
| 22 | private final BigDecimal high; | |
| 23 | private final BigDecimal low; | |
| 24 | private final BigDecimal close; | |
| 25 | private final BigDecimal volume; | |
| 26 | private final BigDecimal uOpen; | |
| 27 | private final BigDecimal uHigh; | |
| 28 | private final BigDecimal uLow; | |
| 29 | private final BigDecimal uClose; | |
| 30 | private final BigDecimal uVolume; | |
| 31 | private final BigDecimal fOpen; | |
| 32 | private final BigDecimal fHigh; | |
| 33 | private final BigDecimal fLow; | |
| 34 | private final BigDecimal fClose; | |
| 35 | private final BigDecimal fVolume; | |
| 36 | private final BigDecimal unadjustedVolume; | |
| 37 | private final BigDecimal change; | |
| 38 | private final BigDecimal changePercent; | |
| 39 | private final BigDecimal vwap; | |
| 40 | private final String label; | |
| 41 | private final BigDecimal changeOverTime; | |
| 42 | ||
| 43 | @JsonCreator | |
| 44 | public TimeSeries( | |
| 45 | @JsonProperty("symbol") final String symbol, | |
| 46 | @JsonProperty("id") final String id, | |
| 47 | @JsonProperty("key") final String key, | |
| 48 | @JsonProperty("subkey") final String subkey, | |
| 49 | @JsonProperty("updated") final Long updated, | |
| 50 | @JsonProperty("date") final String date, | |
| 51 | @JsonProperty("open") final BigDecimal open, | |
| 52 | @JsonProperty("high") final BigDecimal high, | |
| 53 | @JsonProperty("low") final BigDecimal low, | |
| 54 | @JsonProperty("close") final BigDecimal close, | |
| 55 | @JsonProperty("volume") final BigDecimal volume, | |
| 56 | @JsonProperty("uOpen") final BigDecimal uOpen, | |
| 57 | @JsonProperty("uHigh") final BigDecimal uHigh, | |
| 58 | @JsonProperty("uLow") final BigDecimal uLow, | |
| 59 | @JsonProperty("uClose") final BigDecimal uClose, | |
| 60 | @JsonProperty("uVolume") final BigDecimal uVolume, | |
| 61 | @JsonProperty("fOpen") final BigDecimal fOpen, | |
| 62 | @JsonProperty("fHigh") final BigDecimal fHigh, | |
| 63 | @JsonProperty("fLow") final BigDecimal fLow, | |
| 64 | @JsonProperty("fClose") final BigDecimal fClose, | |
| 65 | @JsonProperty("fVolume") final BigDecimal fVolume, | |
| 66 | @JsonProperty("unadjustedVolume") final BigDecimal unadjustedVolume, | |
| 67 | @JsonProperty("change") final BigDecimal change, | |
| 68 | @JsonProperty("changePercent") final BigDecimal changePercent, | |
| 69 | @JsonProperty("vwap") final BigDecimal vwap, | |
| 70 | @JsonProperty("label") final String label, | |
| 71 | @JsonProperty("changeOverTime") final BigDecimal changeOverTime) { | |
| 72 | this.symbol = symbol; | |
| 73 | this.id = id; | |
| 74 | this.key = key; | |
| 75 | this.subkey = subkey; | |
| 76 | this.updated = updated; | |
| 77 | this.date = date; | |
| 78 | this.open = open; | |
| 79 | this.high = high; | |
| 80 | this.low = low; | |
| 81 | this.close = close; | |
| 82 | this.volume = volume; | |
| 83 | this.uOpen = uOpen; | |
| 84 | this.uHigh = uHigh; | |
| 85 | this.uLow = uLow; | |
| 86 | this.uClose = uClose; | |
| 87 | this.uVolume = uVolume; | |
| 88 | this.fOpen = fOpen; | |
| 89 | this.fHigh = fHigh; | |
| 90 | this.fLow = fLow; | |
| 91 | this.fClose = fClose; | |
| 92 | this.fVolume = fVolume; | |
| 93 | this.unadjustedVolume = unadjustedVolume; | |
| 94 | this.change = change; | |
| 95 | this.changePercent = changePercent; | |
| 96 | this.vwap = vwap; | |
| 97 | this.label = label; | |
| 98 | this.changeOverTime = changeOverTime; | |
| 99 | } | |
| 100 | ||
| 101 | public String getSymbol() { | |
| 102 |
1
1. getSymbol : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getSymbol → KILLED |
return symbol; |
| 103 | } | |
| 104 | ||
| 105 | public String getId() { | |
| 106 |
1
1. getId : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getId → KILLED |
return id; |
| 107 | } | |
| 108 | ||
| 109 | public String getKey() { | |
| 110 |
1
1. getKey : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getKey → KILLED |
return key; |
| 111 | } | |
| 112 | ||
| 113 | public String getSubkey() { | |
| 114 |
1
1. getSubkey : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getSubkey → KILLED |
return subkey; |
| 115 | } | |
| 116 | ||
| 117 | public Long getUpdated() { | |
| 118 |
1
1. getUpdated : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getUpdated → KILLED |
return updated; |
| 119 | } | |
| 120 | ||
| 121 | public String getDate() { | |
| 122 |
1
1. getDate : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getDate → KILLED |
return date; |
| 123 | } | |
| 124 | ||
| 125 | public BigDecimal getOpen() { | |
| 126 |
1
1. getOpen : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getOpen → KILLED |
return open; |
| 127 | } | |
| 128 | ||
| 129 | public BigDecimal getHigh() { | |
| 130 |
1
1. getHigh : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getHigh → KILLED |
return high; |
| 131 | } | |
| 132 | ||
| 133 | public BigDecimal getLow() { | |
| 134 |
1
1. getLow : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getLow → KILLED |
return low; |
| 135 | } | |
| 136 | ||
| 137 | public BigDecimal getClose() { | |
| 138 |
1
1. getClose : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getClose → KILLED |
return close; |
| 139 | } | |
| 140 | ||
| 141 | public BigDecimal getVolume() { | |
| 142 |
1
1. getVolume : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getVolume → KILLED |
return volume; |
| 143 | } | |
| 144 | ||
| 145 | public BigDecimal getuOpen() { | |
| 146 |
1
1. getuOpen : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getuOpen → KILLED |
return uOpen; |
| 147 | } | |
| 148 | ||
| 149 | public BigDecimal getuHigh() { | |
| 150 |
1
1. getuHigh : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getuHigh → KILLED |
return uHigh; |
| 151 | } | |
| 152 | ||
| 153 | public BigDecimal getuLow() { | |
| 154 |
1
1. getuLow : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getuLow → KILLED |
return uLow; |
| 155 | } | |
| 156 | ||
| 157 | public BigDecimal getuClose() { | |
| 158 |
1
1. getuClose : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getuClose → KILLED |
return uClose; |
| 159 | } | |
| 160 | ||
| 161 | public BigDecimal getuVolume() { | |
| 162 |
1
1. getuVolume : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getuVolume → KILLED |
return uVolume; |
| 163 | } | |
| 164 | ||
| 165 | public BigDecimal getfOpen() { | |
| 166 |
1
1. getfOpen : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getfOpen → NO_COVERAGE |
return fOpen; |
| 167 | } | |
| 168 | ||
| 169 | public BigDecimal getfHigh() { | |
| 170 |
1
1. getfHigh : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getfHigh → NO_COVERAGE |
return fHigh; |
| 171 | } | |
| 172 | ||
| 173 | public BigDecimal getfLow() { | |
| 174 |
1
1. getfLow : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getfLow → NO_COVERAGE |
return fLow; |
| 175 | } | |
| 176 | ||
| 177 | public BigDecimal getfClose() { | |
| 178 |
1
1. getfClose : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getfClose → NO_COVERAGE |
return fClose; |
| 179 | } | |
| 180 | ||
| 181 | public BigDecimal getfVolume() { | |
| 182 |
1
1. getfVolume : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getfVolume → NO_COVERAGE |
return fVolume; |
| 183 | } | |
| 184 | ||
| 185 | public BigDecimal getUnadjustedVolume() { | |
| 186 |
1
1. getUnadjustedVolume : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getUnadjustedVolume → KILLED |
return unadjustedVolume; |
| 187 | } | |
| 188 | ||
| 189 | public BigDecimal getChange() { | |
| 190 |
1
1. getChange : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getChange → KILLED |
return change; |
| 191 | } | |
| 192 | ||
| 193 | public BigDecimal getChangePercent() { | |
| 194 |
1
1. getChangePercent : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getChangePercent → KILLED |
return changePercent; |
| 195 | } | |
| 196 | ||
| 197 | public BigDecimal getVwap() { | |
| 198 |
1
1. getVwap : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getVwap → KILLED |
return vwap; |
| 199 | } | |
| 200 | ||
| 201 | public String getLabel() { | |
| 202 |
1
1. getLabel : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getLabel → KILLED |
return label; |
| 203 | } | |
| 204 | ||
| 205 | public BigDecimal getChangeOverTime() { | |
| 206 |
1
1. getChangeOverTime : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TimeSeries::getChangeOverTime → KILLED |
return changeOverTime; |
| 207 | } | |
| 208 | ||
| 209 | @Override | |
| 210 | public boolean equals(final Object o) { | |
| 211 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
| 212 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/TimeSeries::equals → KILLED |
return true; |
| 213 | } | |
| 214 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
| 215 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/TimeSeries::equals → KILLED |
return false; |
| 216 | } | |
| 217 | final TimeSeries that = (TimeSeries) o; | |
| 218 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/TimeSeries::equals → KILLED |
return Objects.equals(symbol, that.symbol) && Objects.equals(id, that.id) && |
| 219 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(key, that.key) && Objects.equals(subkey, that.subkey) && |
| 220 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(updated, that.updated) && Objects.equals(date, that.date) && |
| 221 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(open, that.open) && Objects.equals(high, that.high) && |
| 222 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(low, that.low) && Objects.equals(close, that.close) && |
| 223 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(volume, that.volume) && Objects.equals(uOpen, that.uOpen) && |
| 224 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(uHigh, that.uHigh) && Objects.equals(uLow, that.uLow) && |
| 225 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(uClose, that.uClose) && Objects.equals(uVolume, that.uVolume) && |
| 226 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(fOpen, that.fOpen) && Objects.equals(fHigh, that.fHigh) && |
| 227 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(fLow, that.fLow) && Objects.equals(fClose, that.fClose) && |
| 228 |
1
1. equals : negated conditional → KILLED |
Objects.equals(fVolume, that.fVolume) && |
| 229 |
1
1. equals : negated conditional → KILLED |
Objects.equals(unadjustedVolume, that.unadjustedVolume) && |
| 230 |
1
1. equals : negated conditional → KILLED |
Objects.equals(change, that.change) && |
| 231 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(changePercent, that.changePercent) && Objects.equals(vwap, that.vwap) && |
| 232 |
1
1. equals : negated conditional → KILLED |
Objects.equals(label, that.label) && |
| 233 |
1
1. equals : negated conditional → KILLED |
Objects.equals(changeOverTime, that.changeOverTime); |
| 234 | } | |
| 235 | ||
| 236 | @Override | |
| 237 | public int hashCode() { | |
| 238 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/TimeSeries::hashCode → KILLED |
return Objects.hash(symbol, id, key, subkey, updated, date, open, high, low, close, volume, uOpen, uHigh, uLow, |
| 239 | uClose, uVolume, fOpen, fHigh, fLow, fClose, fVolume, unadjustedVolume, change, changePercent, vwap, | |
| 240 | label, changeOverTime); | |
| 241 | } | |
| 242 | ||
| 243 | @Override | |
| 244 | public String toString() { | |
| 245 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/TimeSeries::toString → KILLED |
return new StringJoiner(", ", TimeSeries.class.getSimpleName() + "[", "]") |
| 246 | .add("symbol='" + symbol + "'") | |
| 247 | .add("id='" + id + "'") | |
| 248 | .add("key='" + key + "'") | |
| 249 | .add("subkey='" + subkey + "'") | |
| 250 | .add("updated=" + updated) | |
| 251 | .add("date='" + date + "'") | |
| 252 | .add("open=" + open) | |
| 253 | .add("high=" + high) | |
| 254 | .add("low=" + low) | |
| 255 | .add("close=" + close) | |
| 256 | .add("volume=" + volume) | |
| 257 | .add("uOpen=" + uOpen) | |
| 258 | .add("uHigh=" + uHigh) | |
| 259 | .add("uLow=" + uLow) | |
| 260 | .add("uClose=" + uClose) | |
| 261 | .add("uVolume=" + uVolume) | |
| 262 | .add("fOpen=" + fOpen) | |
| 263 | .add("fHigh=" + fHigh) | |
| 264 | .add("fLow=" + fLow) | |
| 265 | .add("fClose=" + fClose) | |
| 266 | .add("fVolume=" + fVolume) | |
| 267 | .add("unadjustedVolume=" + unadjustedVolume) | |
| 268 | .add("change=" + change) | |
| 269 | .add("changePercent=" + changePercent) | |
| 270 | .add("vwap=" + vwap) | |
| 271 | .add("label='" + label + "'") | |
| 272 | .add("changeOverTime=" + changeOverTime) | |
| 273 | .toString(); | |
| 274 | } | |
| 275 | } | |
Mutations | ||
| 102 |
1.1 |
|
| 106 |
1.1 |
|
| 110 |
1.1 |
|
| 114 |
1.1 |
|
| 118 |
1.1 |
|
| 122 |
1.1 |
|
| 126 |
1.1 |
|
| 130 |
1.1 |
|
| 134 |
1.1 |
|
| 138 |
1.1 |
|
| 142 |
1.1 |
|
| 146 |
1.1 |
|
| 150 |
1.1 |
|
| 154 |
1.1 |
|
| 158 |
1.1 |
|
| 162 |
1.1 |
|
| 166 |
1.1 |
|
| 170 |
1.1 |
|
| 174 |
1.1 |
|
| 178 |
1.1 |
|
| 182 |
1.1 |
|
| 186 |
1.1 |
|
| 190 |
1.1 |
|
| 194 |
1.1 |
|
| 198 |
1.1 |
|
| 202 |
1.1 |
|
| 206 |
1.1 |
|
| 211 |
1.1 |
|
| 212 |
1.1 |
|
| 214 |
1.1 2.2 |
|
| 215 |
1.1 |
|
| 218 |
1.1 2.2 3.3 |
|
| 219 |
1.1 2.2 |
|
| 220 |
1.1 2.2 |
|
| 221 |
1.1 2.2 |
|
| 222 |
1.1 2.2 |
|
| 223 |
1.1 2.2 |
|
| 224 |
1.1 2.2 |
|
| 225 |
1.1 2.2 |
|
| 226 |
1.1 2.2 |
|
| 227 |
1.1 2.2 |
|
| 228 |
1.1 |
|
| 229 |
1.1 |
|
| 230 |
1.1 |
|
| 231 |
1.1 2.2 |
|
| 232 |
1.1 |
|
| 233 |
1.1 |
|
| 238 |
1.1 |
|
| 245 |
1.1 |