1 | package pl.zankowski.iextrading4j.api.refdata.v1; | |
2 | ||
3 | import com.fasterxml.jackson.annotation.JsonCreator; | |
4 | import com.fasterxml.jackson.annotation.JsonProperty; | |
5 | ||
6 | import java.io.Serializable; | |
7 | import java.time.LocalDate; | |
8 | import java.util.Objects; | |
9 | import java.util.StringJoiner; | |
10 | ||
11 | public class Symbol implements Serializable { | |
12 | ||
13 | private static final long serialVersionUID = -7224324582516753026L; | |
14 | ||
15 | private final String symbol; | |
16 | private final LocalDate date; | |
17 | private final Boolean isEnabled; | |
18 | private final String name; | |
19 | ||
20 | @JsonCreator | |
21 | public Symbol( | |
22 | @JsonProperty("symbol") final String symbol, | |
23 | @JsonProperty("date") final LocalDate date, | |
24 | @JsonProperty("isEnabled") final Boolean isEnabled, | |
25 | @JsonProperty("name") final String name) { | |
26 | this.symbol = symbol; | |
27 | this.date = date; | |
28 | this.isEnabled = isEnabled; | |
29 | this.name = name; | |
30 | } | |
31 | ||
32 | public String getSymbol() { | |
33 |
1
1. getSymbol : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Symbol::getSymbol → KILLED |
return symbol; |
34 | } | |
35 | ||
36 | public LocalDate getDate() { | |
37 |
1
1. getDate : replaced return value with null for pl/zankowski/iextrading4j/api/refdata/v1/Symbol::getDate → KILLED |
return date; |
38 | } | |
39 | ||
40 | @JsonProperty("isEnabled") | |
41 | public Boolean getEnabled() { | |
42 |
2
1. getEnabled : replaced Boolean return with True for pl/zankowski/iextrading4j/api/refdata/v1/Symbol::getEnabled → SURVIVED 2. getEnabled : replaced Boolean return with False for pl/zankowski/iextrading4j/api/refdata/v1/Symbol::getEnabled → KILLED |
return isEnabled; |
43 | } | |
44 | ||
45 | public String getName() { | |
46 |
1
1. getName : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Symbol::getName → KILLED |
return name; |
47 | } | |
48 | ||
49 | @Override | |
50 | public boolean equals(final Object o) { | |
51 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
52 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/refdata/v1/Symbol::equals → KILLED |
return true; |
53 | } | |
54 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
55 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/Symbol::equals → KILLED |
return false; |
56 | } | |
57 | final Symbol symbol1 = (Symbol) o; | |
58 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/Symbol::equals → KILLED |
return Objects.equals(symbol, symbol1.symbol) && |
59 |
1
1. equals : negated conditional → KILLED |
Objects.equals(date, symbol1.date) && |
60 |
1
1. equals : negated conditional → KILLED |
Objects.equals(isEnabled, symbol1.isEnabled) && |
61 |
1
1. equals : negated conditional → KILLED |
Objects.equals(name, symbol1.name); |
62 | } | |
63 | ||
64 | @Override | |
65 | public int hashCode() { | |
66 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/refdata/v1/Symbol::hashCode → KILLED |
return Objects.hash(symbol, date, isEnabled, name); |
67 | } | |
68 | ||
69 | @Override | |
70 | public String toString() { | |
71 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Symbol::toString → KILLED |
return new StringJoiner(", ", Symbol.class.getSimpleName() + "[", "]") |
72 | .add("symbol='" + symbol + "'") | |
73 | .add("date=" + date) | |
74 | .add("isEnabled=" + isEnabled) | |
75 | .add("name='" + name + "'") | |
76 | .add("enabled=" + getEnabled()) | |
77 | .toString(); | |
78 | } | |
79 | } | |
Mutations | ||
33 |
1.1 |
|
37 |
1.1 |
|
42 |
1.1 2.2 |
|
46 |
1.1 |
|
51 |
1.1 |
|
52 |
1.1 |
|
54 |
1.1 2.2 |
|
55 |
1.1 |
|
58 |
1.1 2.2 |
|
59 |
1.1 |
|
60 |
1.1 |
|
61 |
1.1 |
|
66 |
1.1 |
|
71 |
1.1 |