| 1 | package pl.zankowski.iextrading4j.api.marketdata; | |
| 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.util.List; | |
| 11 | ||
| 12 | import static pl.zankowski.iextrading4j.api.util.ListUtil.immutableList; | |
| 13 | ||
| 14 | public class DEEP implements Serializable { | |
| 15 | ||
| 16 | private static final long serialVersionUID = -7792421618579735467L; | |
| 17 | ||
| 18 | private final String symbol; | |
| 19 | private final BigDecimal marketPercent; | |
| 20 | private final BigDecimal volume; | |
| 21 | private final BigDecimal lastSalePrice; | |
| 22 | private final BigDecimal lastSaleSize; | |
| 23 | private final Long lastSaleTime; | |
| 24 | private final Long lastUpdated; | |
| 25 | private final List<BookEntry> bids; | |
| 26 | private final List<BookEntry> asks; | |
| 27 | private final SystemEvent systemEvent; | |
| 28 | private final TradingStatus tradingStatus; | |
| 29 | private final OpHaltStatus opHaltStatus; | |
| 30 | private final SsrStatus ssrStatus; | |
| 31 | private final SecurityEvent securityEvent; | |
| 32 | private final List<Trade> trades; | |
| 33 | private final List<Trade> tradeBreaks; | |
| 34 | private final Auction auction; | |
| 35 | private final OfficialPrice officialPrice; | |
| 36 | ||
| 37 | @JsonCreator | |
| 38 | public DEEP( | |
| 39 | @JsonProperty("symbol") final String symbol, | |
| 40 | @JsonProperty("marketPercent") final BigDecimal marketPercent, | |
| 41 | @JsonProperty("volume") final BigDecimal volume, | |
| 42 | @JsonProperty("lastSalePrice") final BigDecimal lastSalePrice, | |
| 43 | @JsonProperty("lastSaleSize") final BigDecimal lastSaleSize, | |
| 44 | @JsonProperty("lastSaleTime") final Long lastSaleTime, | |
| 45 | @JsonProperty("lastUpdated") final Long lastUpdated, | |
| 46 | @JsonProperty("bids") final List<BookEntry> bids, | |
| 47 | @JsonProperty("asks") final List<BookEntry> asks, | |
| 48 | @JsonProperty("systemEvent") final SystemEvent systemEvent, | |
| 49 | @JsonProperty("tradingStatus") final TradingStatus tradingStatus, | |
| 50 | @JsonProperty("opHaltStatus") final OpHaltStatus opHaltStatus, | |
| 51 | @JsonProperty("ssrStatus") final SsrStatus ssrStatus, | |
| 52 | @JsonProperty("securityEvent") final SecurityEvent securityEvent, | |
| 53 | @JsonProperty("trades") final List<Trade> trades, | |
| 54 | @JsonProperty("tradeBreaks") final List<Trade> tradeBreaks, | |
| 55 | @JsonProperty("auction") final Auction auction, | |
| 56 | @JsonProperty("officialPrice") final OfficialPrice officialPrice) { | |
| 57 | this.symbol = symbol; | |
| 58 | this.marketPercent = marketPercent; | |
| 59 | this.volume = volume; | |
| 60 | this.lastSalePrice = lastSalePrice; | |
| 61 | this.lastSaleSize = lastSaleSize; | |
| 62 | this.lastSaleTime = lastSaleTime; | |
| 63 | this.lastUpdated = lastUpdated; | |
| 64 | this.bids = immutableList(bids); | |
| 65 | this.asks = immutableList(asks); | |
| 66 | this.systemEvent = systemEvent; | |
| 67 | this.tradingStatus = tradingStatus; | |
| 68 | this.opHaltStatus = opHaltStatus; | |
| 69 | this.ssrStatus = ssrStatus; | |
| 70 | this.securityEvent = securityEvent; | |
| 71 | this.trades = immutableList(trades); | |
| 72 | this.tradeBreaks = immutableList(tradeBreaks); | |
| 73 | this.auction = auction; | |
| 74 | this.officialPrice = officialPrice; | |
| 75 | } | |
| 76 | ||
| 77 | public String getSymbol() { | |
| 78 |
1
1. getSymbol : replaced return value with "" for pl/zankowski/iextrading4j/api/marketdata/DEEP::getSymbol → KILLED |
return symbol; |
| 79 | } | |
| 80 | ||
| 81 | public BigDecimal getMarketPercent() { | |
| 82 |
1
1. getMarketPercent : replaced return value with null for pl/zankowski/iextrading4j/api/marketdata/DEEP::getMarketPercent → KILLED |
return marketPercent; |
| 83 | } | |
| 84 | ||
| 85 | public BigDecimal getVolume() { | |
| 86 |
1
1. getVolume : replaced return value with null for pl/zankowski/iextrading4j/api/marketdata/DEEP::getVolume → KILLED |
return volume; |
| 87 | } | |
| 88 | ||
| 89 | public BigDecimal getLastSalePrice() { | |
| 90 |
1
1. getLastSalePrice : replaced return value with null for pl/zankowski/iextrading4j/api/marketdata/DEEP::getLastSalePrice → KILLED |
return lastSalePrice; |
| 91 | } | |
| 92 | ||
| 93 | public BigDecimal getLastSaleSize() { | |
| 94 |
1
1. getLastSaleSize : replaced return value with null for pl/zankowski/iextrading4j/api/marketdata/DEEP::getLastSaleSize → KILLED |
return lastSaleSize; |
| 95 | } | |
| 96 | ||
| 97 | public Long getLastSaleTime() { | |
| 98 |
1
1. getLastSaleTime : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/marketdata/DEEP::getLastSaleTime → KILLED |
return lastSaleTime; |
| 99 | } | |
| 100 | ||
| 101 | public Long getLastUpdated() { | |
| 102 |
1
1. getLastUpdated : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/marketdata/DEEP::getLastUpdated → KILLED |
return lastUpdated; |
| 103 | } | |
| 104 | ||
| 105 | public List<BookEntry> getBids() { | |
| 106 |
1
1. getBids : replaced return value with Collections.emptyList for pl/zankowski/iextrading4j/api/marketdata/DEEP::getBids → KILLED |
return bids; |
| 107 | } | |
| 108 | ||
| 109 | public List<BookEntry> getAsks() { | |
| 110 |
1
1. getAsks : replaced return value with Collections.emptyList for pl/zankowski/iextrading4j/api/marketdata/DEEP::getAsks → KILLED |
return asks; |
| 111 | } | |
| 112 | ||
| 113 | public SystemEvent getSystemEvent() { | |
| 114 |
1
1. getSystemEvent : replaced return value with null for pl/zankowski/iextrading4j/api/marketdata/DEEP::getSystemEvent → KILLED |
return systemEvent; |
| 115 | } | |
| 116 | ||
| 117 | public TradingStatus getTradingStatus() { | |
| 118 |
1
1. getTradingStatus : replaced return value with null for pl/zankowski/iextrading4j/api/marketdata/DEEP::getTradingStatus → KILLED |
return tradingStatus; |
| 119 | } | |
| 120 | ||
| 121 | public OpHaltStatus getOpHaltStatus() { | |
| 122 |
1
1. getOpHaltStatus : replaced return value with null for pl/zankowski/iextrading4j/api/marketdata/DEEP::getOpHaltStatus → KILLED |
return opHaltStatus; |
| 123 | } | |
| 124 | ||
| 125 | public SsrStatus getSsrStatus() { | |
| 126 |
1
1. getSsrStatus : replaced return value with null for pl/zankowski/iextrading4j/api/marketdata/DEEP::getSsrStatus → KILLED |
return ssrStatus; |
| 127 | } | |
| 128 | ||
| 129 | public SecurityEvent getSecurityEvent() { | |
| 130 |
1
1. getSecurityEvent : replaced return value with null for pl/zankowski/iextrading4j/api/marketdata/DEEP::getSecurityEvent → KILLED |
return securityEvent; |
| 131 | } | |
| 132 | ||
| 133 | public List<Trade> getTrades() { | |
| 134 |
1
1. getTrades : replaced return value with Collections.emptyList for pl/zankowski/iextrading4j/api/marketdata/DEEP::getTrades → KILLED |
return trades; |
| 135 | } | |
| 136 | ||
| 137 | public List<Trade> getTradeBreaks() { | |
| 138 |
1
1. getTradeBreaks : replaced return value with Collections.emptyList for pl/zankowski/iextrading4j/api/marketdata/DEEP::getTradeBreaks → KILLED |
return tradeBreaks; |
| 139 | } | |
| 140 | ||
| 141 | public Auction getAuction() { | |
| 142 |
1
1. getAuction : replaced return value with null for pl/zankowski/iextrading4j/api/marketdata/DEEP::getAuction → KILLED |
return auction; |
| 143 | } | |
| 144 | ||
| 145 | public OfficialPrice getOfficialPrice() { | |
| 146 |
1
1. getOfficialPrice : replaced return value with null for pl/zankowski/iextrading4j/api/marketdata/DEEP::getOfficialPrice → KILLED |
return officialPrice; |
| 147 | } | |
| 148 | ||
| 149 | @Override | |
| 150 | public boolean equals(Object o) { | |
| 151 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/marketdata/DEEP::equals → KILLED |
if (this == o) return true; |
| 152 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/marketdata/DEEP::equals → KILLED |
if (o == null || getClass() != o.getClass()) return false; |
| 153 | DEEP deep = (DEEP) o; | |
| 154 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/marketdata/DEEP::equals → KILLED |
return Objects.equal(symbol, deep.symbol) && |
| 155 |
1
1. equals : negated conditional → KILLED |
Objects.equal(marketPercent, deep.marketPercent) && |
| 156 |
1
1. equals : negated conditional → KILLED |
Objects.equal(volume, deep.volume) && |
| 157 |
1
1. equals : negated conditional → KILLED |
Objects.equal(lastSalePrice, deep.lastSalePrice) && |
| 158 |
1
1. equals : negated conditional → KILLED |
Objects.equal(lastSaleSize, deep.lastSaleSize) && |
| 159 |
1
1. equals : negated conditional → KILLED |
Objects.equal(lastSaleTime, deep.lastSaleTime) && |
| 160 |
1
1. equals : negated conditional → KILLED |
Objects.equal(lastUpdated, deep.lastUpdated) && |
| 161 |
1
1. equals : negated conditional → KILLED |
Objects.equal(bids, deep.bids) && |
| 162 |
1
1. equals : negated conditional → KILLED |
Objects.equal(asks, deep.asks) && |
| 163 |
1
1. equals : negated conditional → KILLED |
Objects.equal(systemEvent, deep.systemEvent) && |
| 164 |
1
1. equals : negated conditional → KILLED |
Objects.equal(tradingStatus, deep.tradingStatus) && |
| 165 |
1
1. equals : negated conditional → KILLED |
Objects.equal(opHaltStatus, deep.opHaltStatus) && |
| 166 |
1
1. equals : negated conditional → KILLED |
Objects.equal(ssrStatus, deep.ssrStatus) && |
| 167 |
1
1. equals : negated conditional → KILLED |
Objects.equal(securityEvent, deep.securityEvent) && |
| 168 |
1
1. equals : negated conditional → KILLED |
Objects.equal(trades, deep.trades) && |
| 169 |
1
1. equals : negated conditional → KILLED |
Objects.equal(tradeBreaks, deep.tradeBreaks) && |
| 170 |
1
1. equals : negated conditional → KILLED |
Objects.equal(auction, deep.auction) && |
| 171 |
1
1. equals : negated conditional → KILLED |
Objects.equal(officialPrice, deep.officialPrice); |
| 172 | } | |
| 173 | ||
| 174 | @Override | |
| 175 | public int hashCode() { | |
| 176 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/marketdata/DEEP::hashCode → KILLED |
return Objects.hashCode(symbol, marketPercent, volume, lastSalePrice, lastSaleSize, |
| 177 | lastSaleTime, lastUpdated, bids, asks, systemEvent, tradingStatus, opHaltStatus, | |
| 178 | ssrStatus, securityEvent, trades, tradeBreaks, auction, officialPrice); | |
| 179 | } | |
| 180 | ||
| 181 | @Override | |
| 182 | public String toString() { | |
| 183 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/marketdata/DEEP::toString → KILLED |
return MoreObjects.toStringHelper(this) |
| 184 | .add("symbol", symbol) | |
| 185 | .add("marketPercent", marketPercent) | |
| 186 | .add("volume", volume) | |
| 187 | .add("lastSalePrice", lastSalePrice) | |
| 188 | .add("lastSaleSize", lastSaleSize) | |
| 189 | .add("lastSaleTime", lastSaleTime) | |
| 190 | .add("lastUpdated", lastUpdated) | |
| 191 | .add("bids", bids) | |
| 192 | .add("asks", asks) | |
| 193 | .add("systemEvent", systemEvent) | |
| 194 | .add("tradingStatus", tradingStatus) | |
| 195 | .add("opHaltStatus", opHaltStatus) | |
| 196 | .add("ssrStatus", ssrStatus) | |
| 197 | .add("securityEvent", securityEvent) | |
| 198 | .add("trades", trades) | |
| 199 | .add("tradeBreaks", tradeBreaks) | |
| 200 | .add("auction", auction) | |
| 201 | .add("officialPrice", officialPrice) | |
| 202 | .toString(); | |
| 203 | } | |
| 204 | } | |
Mutations | ||
| 78 |
1.1 |
|
| 82 |
1.1 |
|
| 86 |
1.1 |
|
| 90 |
1.1 |
|
| 94 |
1.1 |
|
| 98 |
1.1 |
|
| 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 |
|
| 151 |
1.1 2.2 |
|
| 152 |
1.1 2.2 3.3 |
|
| 154 |
1.1 2.2 |
|
| 155 |
1.1 |
|
| 156 |
1.1 |
|
| 157 |
1.1 |
|
| 158 |
1.1 |
|
| 159 |
1.1 |
|
| 160 |
1.1 |
|
| 161 |
1.1 |
|
| 162 |
1.1 |
|
| 163 |
1.1 |
|
| 164 |
1.1 |
|
| 165 |
1.1 |
|
| 166 |
1.1 |
|
| 167 |
1.1 |
|
| 168 |
1.1 |
|
| 169 |
1.1 |
|
| 170 |
1.1 |
|
| 171 |
1.1 |
|
| 176 |
1.1 |
|
| 183 |
1.1 |