| 1 | package pl.zankowski.iextrading4j.api.refdata; | |
| 2 | ||
| 3 | import com.fasterxml.jackson.annotation.JsonCreator; | |
| 4 | import com.fasterxml.jackson.annotation.JsonProperty; | |
| 5 | ||
| 6 | import java.io.Serializable; | |
| 7 | import java.time.LocalDateTime; | |
| 8 | import java.util.Objects; | |
| 9 | ||
| 10 | public abstract class DailyList implements Serializable { | |
| 11 | ||
| 12 | private static final long serialVersionUID = -6263988959782032624L; | |
| 13 | ||
| 14 | private final String recordId; | |
| 15 | private final LocalDateTime dailyListTimestamp; | |
| 16 | ||
| 17 | @JsonCreator | |
| 18 | protected DailyList( | |
| 19 | @JsonProperty("RecordID") final String recordId, | |
| 20 | @JsonProperty("DailyListTimestamp") final LocalDateTime dailyListTimestamp) { | |
| 21 | this.recordId = recordId; | |
| 22 | this.dailyListTimestamp = dailyListTimestamp; | |
| 23 | } | |
| 24 | ||
| 25 | public String getRecordId() { | |
| 26 |
1
1. getRecordId : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/DailyList::getRecordId → KILLED |
return recordId; |
| 27 | } | |
| 28 | ||
| 29 | public LocalDateTime getDailyListTimestamp() { | |
| 30 |
1
1. getDailyListTimestamp : replaced return value with null for pl/zankowski/iextrading4j/api/refdata/DailyList::getDailyListTimestamp → KILLED |
return dailyListTimestamp; |
| 31 | } | |
| 32 | ||
| 33 | @Override | |
| 34 | public boolean equals(final Object o) { | |
| 35 |
2
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/refdata/DailyList::equals → NO_COVERAGE 2. equals : negated conditional → 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/DailyList::equals → KILLED |
if (o == null || getClass() != o.getClass()) return false; |
| 37 | final DailyList dailyList = (DailyList) o; | |
| 38 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/DailyList::equals → KILLED |
return Objects.equals(recordId, dailyList.recordId) && |
| 39 |
1
1. equals : negated conditional → KILLED |
Objects.equals(dailyListTimestamp, dailyList.dailyListTimestamp); |
| 40 | } | |
| 41 | ||
| 42 | @Override | |
| 43 | public int hashCode() { | |
| 44 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/refdata/DailyList::hashCode → KILLED |
return Objects.hash(recordId, dailyListTimestamp); |
| 45 | } | |
| 46 | ||
| 47 | } | |
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 |