1 | package pl.zankowski.iextrading4j.api.refdata.v1; | |
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 | import java.time.LocalDate; | |
10 | ||
11 | public class HolidayAndTradingDate implements Serializable { | |
12 | ||
13 | private static final long serialVersionUID = -1638495815132092382L; | |
14 | ||
15 | private final LocalDate date; | |
16 | private final LocalDate settlementDate; | |
17 | ||
18 | @JsonCreator | |
19 | public HolidayAndTradingDate( | |
20 | @JsonProperty("date") final LocalDate date, | |
21 | @JsonProperty("settlementDate") final LocalDate settlementDate) { | |
22 | this.date = date; | |
23 | this.settlementDate = settlementDate; | |
24 | } | |
25 | ||
26 | public LocalDate getDate() { | |
27 |
1
1. getDate : replaced return value with null for pl/zankowski/iextrading4j/api/refdata/v1/HolidayAndTradingDate::getDate → KILLED |
return date; |
28 | } | |
29 | ||
30 | public LocalDate getSettlementDate() { | |
31 |
1
1. getSettlementDate : replaced return value with null for pl/zankowski/iextrading4j/api/refdata/v1/HolidayAndTradingDate::getSettlementDate → KILLED |
return settlementDate; |
32 | } | |
33 | ||
34 | @Override | |
35 | public boolean equals(final Object o) { | |
36 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
37 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/refdata/v1/HolidayAndTradingDate::equals → KILLED |
return true; |
38 | } | |
39 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
40 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/HolidayAndTradingDate::equals → KILLED |
return false; |
41 | } | |
42 | final HolidayAndTradingDate that = (HolidayAndTradingDate) o; | |
43 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/HolidayAndTradingDate::equals → KILLED |
return Objects.equal(date, that.date) && |
44 |
1
1. equals : negated conditional → KILLED |
Objects.equal(settlementDate, that.settlementDate); |
45 | } | |
46 | ||
47 | @Override | |
48 | public int hashCode() { | |
49 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/refdata/v1/HolidayAndTradingDate::hashCode → KILLED |
return Objects.hashCode(date, settlementDate); |
50 | } | |
51 | ||
52 | @Override | |
53 | public String toString() { | |
54 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/HolidayAndTradingDate::toString → KILLED |
return MoreObjects.toStringHelper(this) |
55 | .add("date", date) | |
56 | .add("settlementDate", settlementDate) | |
57 | .toString(); | |
58 | } | |
59 | ||
60 | } | |
Mutations | ||
27 |
1.1 |
|
31 |
1.1 |
|
36 |
1.1 |
|
37 |
1.1 |
|
39 |
1.1 2.2 |
|
40 |
1.1 |
|
43 |
1.1 2.2 |
|
44 |
1.1 |
|
49 |
1.1 |
|
54 |
1.1 |