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 | ||
7 | import java.io.Serializable; | |
8 | import java.time.LocalDate; | |
9 | import java.util.Objects; | |
10 | ||
11 | public class CryptoSymbols implements Serializable { | |
12 | ||
13 | private static final long serialVersionUID = 1072113924357554487L; | |
14 | ||
15 | private final String symbol; | |
16 | private final String name; | |
17 | private final String exchange; | |
18 | private final LocalDate date; | |
19 | private final String type; | |
20 | private final String region; | |
21 | private final String currency; | |
22 | private final Boolean isEnabled; | |
23 | ||
24 | @JsonCreator | |
25 | public CryptoSymbols(@JsonProperty("symbol") final String symbol, | |
26 | @JsonProperty("name") final String name, | |
27 | @JsonProperty("exchange") final String exchange, | |
28 | @JsonProperty("date") final LocalDate date, | |
29 | @JsonProperty("type") final String type, | |
30 | @JsonProperty("region") final String region, | |
31 | @JsonProperty("currency") final String currency, | |
32 | @JsonProperty("isEnabled") final Boolean isEnabled) { | |
33 | this.symbol = symbol; | |
34 | this.name = name; | |
35 | this.exchange = exchange; | |
36 | this.date = date; | |
37 | this.type = type; | |
38 | this.region = region; | |
39 | this.currency = currency; | |
40 | this.isEnabled = isEnabled; | |
41 | } | |
42 | ||
43 | public String getSymbol() { | |
44 |
1
1. getSymbol : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/CryptoSymbols::getSymbol → KILLED |
return symbol; |
45 | } | |
46 | ||
47 | public String getName() { | |
48 |
1
1. getName : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/CryptoSymbols::getName → KILLED |
return name; |
49 | } | |
50 | ||
51 | public String getExchange() { | |
52 |
1
1. getExchange : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/CryptoSymbols::getExchange → KILLED |
return exchange; |
53 | } | |
54 | ||
55 | public LocalDate getDate() { | |
56 |
1
1. getDate : replaced return value with null for pl/zankowski/iextrading4j/api/refdata/v1/CryptoSymbols::getDate → KILLED |
return date; |
57 | } | |
58 | ||
59 | public String getType() { | |
60 |
1
1. getType : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/CryptoSymbols::getType → KILLED |
return type; |
61 | } | |
62 | ||
63 | public String getRegion() { | |
64 |
1
1. getRegion : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/CryptoSymbols::getRegion → KILLED |
return region; |
65 | } | |
66 | ||
67 | public String getCurrency() { | |
68 |
1
1. getCurrency : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/CryptoSymbols::getCurrency → KILLED |
return currency; |
69 | } | |
70 | ||
71 | @JsonProperty("isEnabled") | |
72 | public Boolean getEnabled() { | |
73 |
2
1. getEnabled : replaced Boolean return with True for pl/zankowski/iextrading4j/api/refdata/v1/CryptoSymbols::getEnabled → SURVIVED 2. getEnabled : replaced Boolean return with False for pl/zankowski/iextrading4j/api/refdata/v1/CryptoSymbols::getEnabled → KILLED |
return isEnabled; |
74 | } | |
75 | ||
76 | @Override | |
77 | public boolean equals(Object o) { | |
78 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/refdata/v1/CryptoSymbols::equals → KILLED |
if (this == o) return true; |
79 |
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/CryptoSymbols::equals → KILLED |
if (o == null || getClass() != o.getClass()) return false; |
80 | ||
81 | final CryptoSymbols that = (CryptoSymbols) o; | |
82 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/CryptoSymbols::equals → KILLED |
return Objects.equals(symbol, that.symbol) && |
83 |
1
1. equals : negated conditional → KILLED |
Objects.equals(name, that.name) && |
84 |
1
1. equals : negated conditional → KILLED |
Objects.equals(exchange, that.exchange) && |
85 |
1
1. equals : negated conditional → KILLED |
Objects.equals(date, that.date) && |
86 |
1
1. equals : negated conditional → KILLED |
Objects.equals(type, that.type) && |
87 |
1
1. equals : negated conditional → KILLED |
Objects.equals(region, that.region) && |
88 |
1
1. equals : negated conditional → KILLED |
Objects.equals(currency, that.currency) && |
89 |
1
1. equals : negated conditional → KILLED |
Objects.equals(isEnabled, that.isEnabled); |
90 | } | |
91 | ||
92 | @Override | |
93 | public int hashCode() { | |
94 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/refdata/v1/CryptoSymbols::hashCode → KILLED |
return Objects.hash(symbol, name, exchange, date, type, region, currency, isEnabled); |
95 | } | |
96 | ||
97 | @Override | |
98 | public String toString() { | |
99 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/CryptoSymbols::toString → KILLED |
return MoreObjects.toStringHelper(this) |
100 | .add("symbol", symbol) | |
101 | .add("name", name) | |
102 | .add("exchange", exchange) | |
103 | .add("date", date) | |
104 | .add("type", type) | |
105 | .add("region", region) | |
106 | .add("currency", currency) | |
107 | .add("isEnabled", isEnabled) | |
108 | .toString(); | |
109 | } | |
110 | ||
111 | } | |
Mutations | ||
44 |
1.1 |
|
48 |
1.1 |
|
52 |
1.1 |
|
56 |
1.1 |
|
60 |
1.1 |
|
64 |
1.1 |
|
68 |
1.1 |
|
73 |
1.1 2.2 |
|
78 |
1.1 2.2 |
|
79 |
1.1 2.2 3.3 |
|
82 |
1.1 2.2 |
|
83 |
1.1 |
|
84 |
1.1 |
|
85 |
1.1 |
|
86 |
1.1 |
|
87 |
1.1 |
|
88 |
1.1 |
|
89 |
1.1 |
|
94 |
1.1 |
|
99 |
1.1 |