1 | package pl.zankowski.iextrading4j.api.marketdata; | |
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 | public class OpHaltStatus implements DeepResult { | |
9 | ||
10 | private static final long serialVersionUID = -2147671898499081694L; | |
11 | ||
12 | private final Boolean isHalted; | |
13 | private final Long timestamp; | |
14 | ||
15 | @JsonCreator | |
16 | public OpHaltStatus( | |
17 | @JsonProperty("isHalted") final Boolean isHalted, | |
18 | @JsonProperty("timestamp") final Long timestamp) { | |
19 | this.isHalted = isHalted; | |
20 | this.timestamp = timestamp; | |
21 | } | |
22 | ||
23 | @JsonProperty("isHalted") | |
24 | public Boolean isHalted() { | |
25 |
2
1. isHalted : replaced Boolean return with True for pl/zankowski/iextrading4j/api/marketdata/OpHaltStatus::isHalted → SURVIVED 2. isHalted : replaced Boolean return with False for pl/zankowski/iextrading4j/api/marketdata/OpHaltStatus::isHalted → KILLED |
return isHalted; |
26 | } | |
27 | ||
28 | public Long getTimestamp() { | |
29 |
1
1. getTimestamp : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/marketdata/OpHaltStatus::getTimestamp → KILLED |
return timestamp; |
30 | } | |
31 | ||
32 | @Override | |
33 | public boolean equals(Object o) { | |
34 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/marketdata/OpHaltStatus::equals → KILLED |
if (this == o) return true; |
35 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/marketdata/OpHaltStatus::equals → KILLED |
if (o == null || getClass() != o.getClass()) return false; |
36 | OpHaltStatus that = (OpHaltStatus) o; | |
37 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/marketdata/OpHaltStatus::equals → KILLED |
return Objects.equal(isHalted, that.isHalted) && |
38 |
1
1. equals : negated conditional → KILLED |
Objects.equal(timestamp, that.timestamp); |
39 | } | |
40 | ||
41 | @Override | |
42 | public int hashCode() { | |
43 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/marketdata/OpHaltStatus::hashCode → KILLED |
return Objects.hashCode(isHalted, timestamp); |
44 | } | |
45 | ||
46 | @Override | |
47 | public String toString() { | |
48 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/marketdata/OpHaltStatus::toString → KILLED |
return MoreObjects.toStringHelper(this) |
49 | .add("isHalted", isHalted) | |
50 | .add("timestamp", timestamp) | |
51 | .toString(); | |
52 | } | |
53 | } | |
Mutations | ||
25 |
1.1 2.2 |
|
29 |
1.1 |
|
34 |
1.1 2.2 |
|
35 |
1.1 2.2 3.3 |
|
37 |
1.1 2.2 |
|
38 |
1.1 |
|
43 |
1.1 |
|
48 |
1.1 |