1 | package pl.zankowski.iextrading4j.api.refdata; | |
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.time.LocalDate; | |
10 | ||
11 | public class ExchangeSymbol implements Serializable { | |
12 | ||
13 | private static final long serialVersionUID = -1841302226853517777L; | |
14 | ||
15 | private final String symbol; | |
16 | private final String name; | |
17 | private final LocalDate date; | |
18 | private final Boolean isEnabled; | |
19 | private final SymbolType type; | |
20 | private final Long iexId; | |
21 | ||
22 | @JsonCreator | |
23 | public ExchangeSymbol( | |
24 | @JsonProperty("symbol") final String symbol, | |
25 | @JsonProperty("name") final String name, | |
26 | @JsonProperty("date") final LocalDate date, | |
27 | @JsonProperty("isEnabled") final Boolean isEnabled, | |
28 | @JsonProperty("type") final SymbolType type, | |
29 | @JsonProperty("iexId") final Long iexId) { | |
30 | this.symbol = symbol; | |
31 | this.name = name; | |
32 | this.date = date; | |
33 | this.isEnabled = isEnabled; | |
34 | this.type = type; | |
35 | this.iexId = iexId; | |
36 | } | |
37 | ||
38 | public String getSymbol() { | |
39 |
1
1. getSymbol : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/ExchangeSymbol::getSymbol → KILLED |
return symbol; |
40 | } | |
41 | ||
42 | public String getName() { | |
43 |
1
1. getName : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/ExchangeSymbol::getName → KILLED |
return name; |
44 | } | |
45 | ||
46 | public LocalDate getDate() { | |
47 |
1
1. getDate : replaced return value with null for pl/zankowski/iextrading4j/api/refdata/ExchangeSymbol::getDate → KILLED |
return date; |
48 | } | |
49 | ||
50 | @JsonProperty("isEnabled") | |
51 | public Boolean getEnabled() { | |
52 |
2
1. getEnabled : replaced Boolean return with True for pl/zankowski/iextrading4j/api/refdata/ExchangeSymbol::getEnabled → SURVIVED 2. getEnabled : replaced Boolean return with False for pl/zankowski/iextrading4j/api/refdata/ExchangeSymbol::getEnabled → KILLED |
return isEnabled; |
53 | } | |
54 | ||
55 | public SymbolType getType() { | |
56 |
1
1. getType : replaced return value with null for pl/zankowski/iextrading4j/api/refdata/ExchangeSymbol::getType → KILLED |
return type; |
57 | } | |
58 | ||
59 | public Long getIexId() { | |
60 |
1
1. getIexId : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/refdata/ExchangeSymbol::getIexId → KILLED |
return iexId; |
61 | } | |
62 | ||
63 | @Override | |
64 | public boolean equals(Object o) { | |
65 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/refdata/ExchangeSymbol::equals → KILLED |
if (this == o) return true; |
66 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/ExchangeSymbol::equals → KILLED |
if (o == null || getClass() != o.getClass()) return false; |
67 | ExchangeSymbol that = (ExchangeSymbol) o; | |
68 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/ExchangeSymbol::equals → KILLED |
return Objects.equal(symbol, that.symbol) && |
69 |
1
1. equals : negated conditional → KILLED |
Objects.equal(name, that.name) && |
70 |
1
1. equals : negated conditional → KILLED |
Objects.equal(date, that.date) && |
71 |
1
1. equals : negated conditional → KILLED |
Objects.equal(isEnabled, that.isEnabled) && |
72 |
1
1. equals : negated conditional → KILLED |
Objects.equal(type, that.type) && |
73 |
1
1. equals : negated conditional → KILLED |
Objects.equal(iexId, that.iexId); |
74 | } | |
75 | ||
76 | @Override | |
77 | public int hashCode() { | |
78 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/refdata/ExchangeSymbol::hashCode → KILLED |
return Objects.hashCode(symbol, name, date, isEnabled, type, iexId); |
79 | } | |
80 | ||
81 | @Override | |
82 | public String toString() { | |
83 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/ExchangeSymbol::toString → KILLED |
return MoreObjects.toStringHelper(this) |
84 | .add("symbol", symbol) | |
85 | .add("name", name) | |
86 | .add("date", date) | |
87 | .add("isEnabled", isEnabled) | |
88 | .add("type", type) | |
89 | .add("iexId", iexId) | |
90 | .toString(); | |
91 | } | |
92 | } | |
Mutations | ||
39 |
1.1 |
|
43 |
1.1 |
|
47 |
1.1 |
|
52 |
1.1 2.2 |
|
56 |
1.1 |
|
60 |
1.1 |
|
65 |
1.1 2.2 |
|
66 |
1.1 2.2 3.3 |
|
68 |
1.1 2.2 |
|
69 |
1.1 |
|
70 |
1.1 |
|
71 |
1.1 |
|
72 |
1.1 |
|
73 |
1.1 |
|
78 |
1.1 |
|
83 |
1.1 |