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