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 Pair implements Serializable { | |
11 | ||
12 | private static final long serialVersionUID = -2645372178216689567L; | |
13 | ||
14 | private final String from; | |
15 | private final String to; | |
16 | ||
17 | @JsonCreator | |
18 | public Pair( | |
19 | @JsonProperty("from") final String from, | |
20 | @JsonProperty("to") final String to) { | |
21 | this.from = from; | |
22 | this.to = to; | |
23 | } | |
24 | ||
25 | public String getFrom() { | |
26 |
1
1. getFrom : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Pair::getFrom → KILLED |
return from; |
27 | } | |
28 | ||
29 | public String getTo() { | |
30 |
1
1. getTo : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Pair::getTo → KILLED |
return to; |
31 | } | |
32 | ||
33 | @Override | |
34 | public boolean equals(final Object o) { | |
35 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/refdata/v1/Pair::equals → KILLED |
if (this == o) return true; |
36 |
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/Pair::equals → KILLED |
if (o == null || getClass() != o.getClass()) return false; |
37 | final Pair pair = (Pair) o; | |
38 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/Pair::equals → KILLED |
return Objects.equal(from, pair.from) && |
39 |
1
1. equals : negated conditional → KILLED |
Objects.equal(to, pair.to); |
40 | } | |
41 | ||
42 | @Override | |
43 | public int hashCode() { | |
44 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/refdata/v1/Pair::hashCode → KILLED |
return Objects.hashCode(from, to); |
45 | } | |
46 | ||
47 | @Override | |
48 | public String toString() { | |
49 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Pair::toString → KILLED |
return MoreObjects.toStringHelper(this) |
50 | .add("from", from) | |
51 | .add("to", to) | |
52 | .toString(); | |
53 | } | |
54 | ||
55 | } | |
Mutations | ||
26 |
1.1 |
|
30 |
1.1 |
|
35 |
1.1 2.2 |
|
36 |
1.1 2.2 3.3 |
|
38 |
1.1 2.2 |
|
39 |
1.1 |
|
44 |
1.1 |
|
49 |
1.1 |