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.util.Objects; | |
9 | import java.util.StringJoiner; | |
10 | ||
11 | public class Exchange implements Serializable { | |
12 | ||
13 | private static final long serialVersionUID = -7878559134922419823L; | |
14 | ||
15 | private final String exchange; | |
16 | private final String region; | |
17 | private final String description; | |
18 | private final String mic; | |
19 | private final String segment; | |
20 | private final String segmentDescription; | |
21 | private final String suffix; | |
22 | private final String exchangeSuffix; | |
23 | ||
24 | @JsonCreator | |
25 | public Exchange( | |
26 | @JsonProperty("exchange") final String exchange, | |
27 | @JsonProperty("region") final String region, | |
28 | @JsonProperty("description") final String description, | |
29 | @JsonProperty("mic") final String mic, | |
30 | @JsonProperty("segment") final String segment, | |
31 | @JsonProperty("segmentDescription") final String segmentDescription, | |
32 | @JsonProperty("suffix") final String suffix, | |
33 | @JsonProperty("exchangeSuffix") final String exchangeSuffix) { | |
34 | this.exchange = exchange; | |
35 | this.region = region; | |
36 | this.description = description; | |
37 | this.mic = mic; | |
38 | this.segment = segment; | |
39 | this.segmentDescription = segmentDescription; | |
40 | this.suffix = suffix; | |
41 | this.exchangeSuffix = exchangeSuffix; | |
42 | } | |
43 | ||
44 | public String getExchange() { | |
45 |
1
1. getExchange : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getExchange → KILLED |
return exchange; |
46 | } | |
47 | ||
48 | public String getRegion() { | |
49 |
1
1. getRegion : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getRegion → KILLED |
return region; |
50 | } | |
51 | ||
52 | public String getDescription() { | |
53 |
1
1. getDescription : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getDescription → KILLED |
return description; |
54 | } | |
55 | ||
56 | public String getMic() { | |
57 |
1
1. getMic : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getMic → KILLED |
return mic; |
58 | } | |
59 | ||
60 | public String getSegment() { | |
61 |
1
1. getSegment : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getSegment → KILLED |
return segment; |
62 | } | |
63 | ||
64 | public String getSegmentDescription() { | |
65 |
1
1. getSegmentDescription : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getSegmentDescription → KILLED |
return segmentDescription; |
66 | } | |
67 | ||
68 | public String getSuffix() { | |
69 |
1
1. getSuffix : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getSuffix → KILLED |
return suffix; |
70 | } | |
71 | ||
72 | public String getExchangeSuffix() { | |
73 |
1
1. getExchangeSuffix : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getExchangeSuffix → KILLED |
return exchangeSuffix; |
74 | } | |
75 | ||
76 | @Override | |
77 | public boolean equals(final Object o) { | |
78 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
79 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::equals → KILLED |
return true; |
80 | } | |
81 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
82 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::equals → KILLED |
return false; |
83 | } | |
84 | final Exchange exchange1 = (Exchange) o; | |
85 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::equals → KILLED |
return Objects.equals(exchange, exchange1.exchange) && |
86 |
1
1. equals : negated conditional → KILLED |
Objects.equals(region, exchange1.region) && |
87 |
1
1. equals : negated conditional → KILLED |
Objects.equals(description, exchange1.description) && |
88 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(mic, exchange1.mic) && Objects.equals(segment, exchange1.segment) && |
89 |
1
1. equals : negated conditional → KILLED |
Objects.equals(segmentDescription, exchange1.segmentDescription) && |
90 |
1
1. equals : negated conditional → KILLED |
Objects.equals(suffix, exchange1.suffix) && |
91 |
1
1. equals : negated conditional → KILLED |
Objects.equals(exchangeSuffix, exchange1.exchangeSuffix); |
92 | } | |
93 | ||
94 | @Override | |
95 | public int hashCode() { | |
96 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::hashCode → KILLED |
return Objects.hash(exchange, region, description, mic, segment, segmentDescription, suffix, exchangeSuffix); |
97 | } | |
98 | ||
99 | @Override | |
100 | public String toString() { | |
101 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::toString → KILLED |
return new StringJoiner(", ", Exchange.class.getSimpleName() + "[", "]") |
102 | .add("exchange='" + exchange + "'") | |
103 | .add("region='" + region + "'") | |
104 | .add("description='" + description + "'") | |
105 | .add("mic='" + mic + "'") | |
106 | .add("segment='" + segment + "'") | |
107 | .add("segmentDescription='" + segmentDescription + "'") | |
108 | .add("suffix='" + suffix + "'") | |
109 | .add("exchangeSuffix='" + exchangeSuffix + "'") | |
110 | .toString(); | |
111 | } | |
112 | } | |
Mutations | ||
45 |
1.1 |
|
49 |
1.1 |
|
53 |
1.1 |
|
57 |
1.1 |
|
61 |
1.1 |
|
65 |
1.1 |
|
69 |
1.1 |
|
73 |
1.1 |
|
78 |
1.1 |
|
79 |
1.1 |
|
81 |
1.1 2.2 |
|
82 |
1.1 |
|
85 |
1.1 2.2 |
|
86 |
1.1 |
|
87 |
1.1 |
|
88 |
1.1 2.2 |
|
89 |
1.1 |
|
90 |
1.1 |
|
91 |
1.1 |
|
96 |
1.1 |
|
101 |
1.1 |