| 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 com.google.common.base.MoreObjects; | |
| 6 | import com.google.common.base.Objects; | |
| 7 | ||
| 8 | import java.io.Serializable; | |
| 9 | ||
| 10 | public class SymbolMapping implements Serializable { | |
| 11 | ||
| 12 | private static final long serialVersionUID = 7796962782222356844L; | |
| 13 | ||
| 14 | private final String symbol; | |
| 15 | private final String exchange; | |
| 16 | private final String region; | |
| 17 | private final String iexId; | |
| 18 | ||
| 19 | @JsonCreator | |
| 20 | public SymbolMapping( | |
| 21 | @JsonProperty("symbol") final String symbol, | |
| 22 | @JsonProperty("exchange") final String exchange, | |
| 23 | @JsonProperty("region") final String region, | |
| 24 | @JsonProperty("iexId") final String iexId) { | |
| 25 | this.symbol = symbol; | |
| 26 | this.exchange = exchange; | |
| 27 | this.region = region; | |
| 28 | this.iexId = iexId; | |
| 29 | } | |
| 30 | ||
| 31 | public String getSymbol() { | |
| 32 |
1
1. getSymbol : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/SymbolMapping::getSymbol → KILLED |
return symbol; |
| 33 | } | |
| 34 | ||
| 35 | public String getExchange() { | |
| 36 |
1
1. getExchange : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/SymbolMapping::getExchange → KILLED |
return exchange; |
| 37 | } | |
| 38 | ||
| 39 | public String getRegion() { | |
| 40 |
1
1. getRegion : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/SymbolMapping::getRegion → KILLED |
return region; |
| 41 | } | |
| 42 | ||
| 43 | public String getIexId() { | |
| 44 |
1
1. getIexId : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/SymbolMapping::getIexId → KILLED |
return iexId; |
| 45 | } | |
| 46 | ||
| 47 | @Override | |
| 48 | public boolean equals(final Object o) { | |
| 49 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
| 50 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/refdata/v1/SymbolMapping::equals → KILLED |
return true; |
| 51 | } | |
| 52 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
| 53 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/SymbolMapping::equals → KILLED |
return false; |
| 54 | } | |
| 55 | final SymbolMapping that = (SymbolMapping) o; | |
| 56 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/SymbolMapping::equals → KILLED |
return Objects.equal(symbol, that.symbol) && |
| 57 |
1
1. equals : negated conditional → KILLED |
Objects.equal(exchange, that.exchange) && |
| 58 |
1
1. equals : negated conditional → KILLED |
Objects.equal(region, that.region) && |
| 59 |
1
1. equals : negated conditional → KILLED |
Objects.equal(iexId, that.iexId); |
| 60 | } | |
| 61 | ||
| 62 | @Override | |
| 63 | public int hashCode() { | |
| 64 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/refdata/v1/SymbolMapping::hashCode → KILLED |
return Objects.hashCode(symbol, exchange, region, iexId); |
| 65 | } | |
| 66 | ||
| 67 | @Override | |
| 68 | public String toString() { | |
| 69 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/SymbolMapping::toString → KILLED |
return MoreObjects.toStringHelper(this) |
| 70 | .add("symbol", symbol) | |
| 71 | .add("exchange", exchange) | |
| 72 | .add("region", region) | |
| 73 | .add("iexId", iexId) | |
| 74 | .toString(); | |
| 75 | } | |
| 76 | ||
| 77 | } | |
Mutations | ||
| 32 |
1.1 |
|
| 36 |
1.1 |
|
| 40 |
1.1 |
|
| 44 |
1.1 |
|
| 49 |
1.1 |
|
| 50 |
1.1 |
|
| 52 |
1.1 2.2 |
|
| 53 |
1.1 |
|
| 56 |
1.1 2.2 |
|
| 57 |
1.1 |
|
| 58 |
1.1 |
|
| 59 |
1.1 |
|
| 64 |
1.1 |
|
| 69 |
1.1 |