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