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