| 1 | package pl.zankowski.iextrading4j.api.refdata.v1; | |
| 2 | ||
| 3 | import com.fasterxml.jackson.annotation.JsonCreator; | |
| 4 | import com.fasterxml.jackson.annotation.JsonProperty; | |
| 5 | import pl.zankowski.iextrading4j.api.refdata.SymbolType; | |
| 6 | ||
| 7 | import java.io.Serializable; | |
| 8 | import java.time.LocalDate; | |
| 9 | import java.util.Objects; | |
| 10 | import java.util.StringJoiner; | |
| 11 | ||
| 12 | public class ExchangeSymbol implements Serializable { | |
| 13 | ||
| 14 | private static final long serialVersionUID = -5740262153957115684L; | |
| 15 | ||
| 16 | private final String symbol; | |
| 17 | private final String exchange; | |
| 18 | private final String exchangeSuffix; | |
| 19 | private final String exchangeName; | |
| 20 | private final String exchangeSegment; | |
| 21 | private final String exchangeSegmentName; | |
| 22 | private final String name; | |
| 23 | private final LocalDate date; | |
| 24 | private final SymbolType type; | |
| 25 | private final String iexId; | |
| 26 | private final String region; | |
| 27 | private final String currency; | |
| 28 | private final Boolean isEnabled; | |
| 29 | private final String figi; | |
| 30 | private final String cik; | |
| 31 | private final String lei; | |
| 32 | ||
| 33 | @JsonCreator | |
| 34 | public ExchangeSymbol( | |
| 35 | @JsonProperty("symbol") final String symbol, | |
| 36 | @JsonProperty("exchange") final String exchange, | |
| 37 | @JsonProperty("exchangeSuffix") final String exchangeSuffix, | |
| 38 | @JsonProperty("exchangeName") final String exchangeName, | |
| 39 | @JsonProperty("exchangeSegment") final String exchangeSegment, | |
| 40 | @JsonProperty("exchangeSegmentName") final String exchangeSegmentName, | |
| 41 | @JsonProperty("name") final String name, | |
| 42 | @JsonProperty("date") final LocalDate date, | |
| 43 | @JsonProperty("type") final SymbolType type, | |
| 44 | @JsonProperty("iexId") final String iexId, | |
| 45 | @JsonProperty("region") final String region, | |
| 46 | @JsonProperty("currency") final String currency, | |
| 47 | @JsonProperty("isEnabled") final Boolean isEnabled, | |
| 48 | @JsonProperty("figi") final String figi, | |
| 49 | @JsonProperty("cik") final String cik, | |
| 50 | @JsonProperty("lei") final String lei) { | |
| 51 | this.symbol = symbol; | |
| 52 | this.exchange = exchange; | |
| 53 | this.exchangeSuffix = exchangeSuffix; | |
| 54 | this.exchangeName = exchangeName; | |
| 55 | this.exchangeSegment = exchangeSegment; | |
| 56 | this.exchangeSegmentName = exchangeSegmentName; | |
| 57 | this.name = name; | |
| 58 | this.date = date; | |
| 59 | this.type = type; | |
| 60 | this.iexId = iexId; | |
| 61 | this.region = region; | |
| 62 | this.currency = currency; | |
| 63 | this.isEnabled = isEnabled; | |
| 64 | this.figi = figi; | |
| 65 | this.cik = cik; | |
| 66 | this.lei = lei; | |
| 67 | } | |
| 68 | ||
| 69 | public String getSymbol() { | |
| 70 |
1
1. getSymbol : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::getSymbol → KILLED |
return symbol; |
| 71 | } | |
| 72 | ||
| 73 | public String getExchange() { | |
| 74 |
1
1. getExchange : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::getExchange → KILLED |
return exchange; |
| 75 | } | |
| 76 | ||
| 77 | public String getExchangeSuffix() { | |
| 78 |
1
1. getExchangeSuffix : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::getExchangeSuffix → KILLED |
return exchangeSuffix; |
| 79 | } | |
| 80 | ||
| 81 | public String getExchangeName() { | |
| 82 |
1
1. getExchangeName : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::getExchangeName → KILLED |
return exchangeName; |
| 83 | } | |
| 84 | ||
| 85 | public String getExchangeSegment() { | |
| 86 |
1
1. getExchangeSegment : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::getExchangeSegment → KILLED |
return exchangeSegment; |
| 87 | } | |
| 88 | ||
| 89 | public String getExchangeSegmentName() { | |
| 90 |
1
1. getExchangeSegmentName : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::getExchangeSegmentName → KILLED |
return exchangeSegmentName; |
| 91 | } | |
| 92 | ||
| 93 | public String getName() { | |
| 94 |
1
1. getName : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::getName → KILLED |
return name; |
| 95 | } | |
| 96 | ||
| 97 | public LocalDate getDate() { | |
| 98 |
1
1. getDate : replaced return value with null for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::getDate → KILLED |
return date; |
| 99 | } | |
| 100 | ||
| 101 | public SymbolType getType() { | |
| 102 |
1
1. getType : replaced return value with null for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::getType → KILLED |
return type; |
| 103 | } | |
| 104 | ||
| 105 | public String getIexId() { | |
| 106 |
1
1. getIexId : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::getIexId → KILLED |
return iexId; |
| 107 | } | |
| 108 | ||
| 109 | public String getRegion() { | |
| 110 |
1
1. getRegion : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::getRegion → KILLED |
return region; |
| 111 | } | |
| 112 | ||
| 113 | public String getCurrency() { | |
| 114 |
1
1. getCurrency : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::getCurrency → KILLED |
return currency; |
| 115 | } | |
| 116 | ||
| 117 | @JsonProperty("isEnabled") | |
| 118 | public Boolean getEnabled() { | |
| 119 |
2
1. getEnabled : replaced Boolean return with True for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::getEnabled → SURVIVED 2. getEnabled : replaced Boolean return with False for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::getEnabled → KILLED |
return isEnabled; |
| 120 | } | |
| 121 | ||
| 122 | public String getFigi() { | |
| 123 |
1
1. getFigi : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::getFigi → KILLED |
return figi; |
| 124 | } | |
| 125 | ||
| 126 | public String getCik() { | |
| 127 |
1
1. getCik : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::getCik → KILLED |
return cik; |
| 128 | } | |
| 129 | ||
| 130 | public String getLei() { | |
| 131 |
1
1. getLei : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::getLei → KILLED |
return lei; |
| 132 | } | |
| 133 | ||
| 134 | @Override | |
| 135 | public boolean equals(final Object o) { | |
| 136 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
| 137 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::equals → KILLED |
return true; |
| 138 | } | |
| 139 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
| 140 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::equals → KILLED |
return false; |
| 141 | } | |
| 142 | final ExchangeSymbol that = (ExchangeSymbol) o; | |
| 143 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::equals → KILLED |
return Objects.equals(symbol, that.symbol) && Objects.equals(exchange, that.exchange) && |
| 144 |
1
1. equals : negated conditional → KILLED |
Objects.equals(exchangeSuffix, that.exchangeSuffix) && |
| 145 |
1
1. equals : negated conditional → KILLED |
Objects.equals(exchangeName, that.exchangeName) && |
| 146 |
1
1. equals : negated conditional → KILLED |
Objects.equals(exchangeSegment, that.exchangeSegment) && |
| 147 |
1
1. equals : negated conditional → KILLED |
Objects.equals(exchangeSegmentName, that.exchangeSegmentName) && |
| 148 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : negated conditional → KILLED |
Objects.equals(name, that.name) && Objects.equals(date, that.date) && |
| 149 |
1
1. equals : negated conditional → KILLED |
type == that.type && Objects.equals(iexId, that.iexId) && |
| 150 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(region, that.region) && Objects.equals(currency, that.currency) && |
| 151 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(isEnabled, that.isEnabled) && Objects.equals(figi, that.figi) && |
| 152 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(cik, that.cik) && Objects.equals(lei, that.lei); |
| 153 | } | |
| 154 | ||
| 155 | @Override | |
| 156 | public int hashCode() { | |
| 157 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::hashCode → KILLED |
return Objects.hash(symbol, exchange, exchangeSuffix, exchangeName, exchangeSegment, exchangeSegmentName, name, |
| 158 | date, type, iexId, region, currency, isEnabled, figi, cik, lei); | |
| 159 | } | |
| 160 | ||
| 161 | @Override | |
| 162 | public String toString() { | |
| 163 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/ExchangeSymbol::toString → KILLED |
return new StringJoiner(", ", ExchangeSymbol.class.getSimpleName() + "[", "]") |
| 164 | .add("symbol='" + symbol + "'") | |
| 165 | .add("exchange='" + exchange + "'") | |
| 166 | .add("exchangeSuffix='" + exchangeSuffix + "'") | |
| 167 | .add("exchangeName='" + exchangeName + "'") | |
| 168 | .add("exchangeSegment='" + exchangeSegment + "'") | |
| 169 | .add("exchangeSegmentName='" + exchangeSegmentName + "'") | |
| 170 | .add("name='" + name + "'") | |
| 171 | .add("date=" + date) | |
| 172 | .add("type=" + type) | |
| 173 | .add("iexId='" + iexId + "'") | |
| 174 | .add("region='" + region + "'") | |
| 175 | .add("currency='" + currency + "'") | |
| 176 | .add("isEnabled=" + isEnabled) | |
| 177 | .add("figi='" + figi + "'") | |
| 178 | .add("cik='" + cik + "'") | |
| 179 | .add("lei='" + lei + "'") | |
| 180 | .add("enabled=" + getEnabled()) | |
| 181 | .toString(); | |
| 182 | } | |
| 183 | } | |
Mutations | ||
| 70 |
1.1 |
|
| 74 |
1.1 |
|
| 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 |
|
| 119 |
1.1 2.2 |
|
| 123 |
1.1 |
|
| 127 |
1.1 |
|
| 131 |
1.1 |
|
| 136 |
1.1 |
|
| 137 |
1.1 |
|
| 139 |
1.1 2.2 |
|
| 140 |
1.1 |
|
| 143 |
1.1 2.2 3.3 |
|
| 144 |
1.1 |
|
| 145 |
1.1 |
|
| 146 |
1.1 |
|
| 147 |
1.1 |
|
| 148 |
1.1 2.2 3.3 |
|
| 149 |
1.1 |
|
| 150 |
1.1 2.2 |
|
| 151 |
1.1 2.2 |
|
| 152 |
1.1 2.2 |
|
| 157 |
1.1 |
|
| 163 |
1.1 |