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