| 1 | package pl.zankowski.iextrading4j.api.stocks; | |
| 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.math.BigDecimal; | |
| 10 | import java.time.LocalDate; | |
| 11 | ||
| 12 | public class Dividends implements Serializable { | |
| 13 | ||
| 14 | private static final long serialVersionUID = 9130059067908266890L; | |
| 15 | ||
| 16 | private final LocalDate exDate; | |
| 17 | private final LocalDate paymentDate; | |
| 18 | private final LocalDate recordDate; | |
| 19 | private final LocalDate declaredDate; | |
| 20 | private final BigDecimal amount; | |
| 21 | private final String flag; | |
| 22 | private final DividendType type; | |
| 23 | private final DividendQualification qualified; | |
| 24 | private final String indicated; | |
| 25 | ||
| 26 | @JsonCreator | |
| 27 | public Dividends( | |
| 28 | @JsonProperty("exDate") final LocalDate exDate, | |
| 29 | @JsonProperty("paymentDate") final LocalDate paymentDate, | |
| 30 | @JsonProperty("recordDate") final LocalDate recordDate, | |
| 31 | @JsonProperty("declaredDate") final LocalDate declaredDate, | |
| 32 | @JsonProperty("amount") final BigDecimal amount, | |
| 33 | @JsonProperty("flag") final String flag, | |
| 34 | @JsonProperty("type") final DividendType type, | |
| 35 | @JsonProperty("qualified") final DividendQualification qualified, | |
| 36 | @JsonProperty("indicated") final String indicated) { | |
| 37 | this.exDate = exDate; | |
| 38 | this.paymentDate = paymentDate; | |
| 39 | this.recordDate = recordDate; | |
| 40 | this.declaredDate = declaredDate; | |
| 41 | this.amount = amount; | |
| 42 | this.flag = flag; | |
| 43 | this.type = type; | |
| 44 | this.qualified = qualified; | |
| 45 | this.indicated = indicated; | |
| 46 | } | |
| 47 | ||
| 48 | public LocalDate getExDate() { | |
| 49 |
1
1. getExDate : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Dividends::getExDate → KILLED |
return exDate; |
| 50 | } | |
| 51 | ||
| 52 | public LocalDate getPaymentDate() { | |
| 53 |
1
1. getPaymentDate : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Dividends::getPaymentDate → KILLED |
return paymentDate; |
| 54 | } | |
| 55 | ||
| 56 | public LocalDate getRecordDate() { | |
| 57 |
1
1. getRecordDate : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Dividends::getRecordDate → KILLED |
return recordDate; |
| 58 | } | |
| 59 | ||
| 60 | public LocalDate getDeclaredDate() { | |
| 61 |
1
1. getDeclaredDate : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Dividends::getDeclaredDate → KILLED |
return declaredDate; |
| 62 | } | |
| 63 | ||
| 64 | public BigDecimal getAmount() { | |
| 65 |
1
1. getAmount : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Dividends::getAmount → KILLED |
return amount; |
| 66 | } | |
| 67 | ||
| 68 | public String getFlag() { | |
| 69 |
1
1. getFlag : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Dividends::getFlag → KILLED |
return flag; |
| 70 | } | |
| 71 | ||
| 72 | public DividendType getType() { | |
| 73 |
1
1. getType : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Dividends::getType → KILLED |
return type; |
| 74 | } | |
| 75 | ||
| 76 | public DividendQualification getQualified() { | |
| 77 |
1
1. getQualified : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Dividends::getQualified → KILLED |
return qualified; |
| 78 | } | |
| 79 | ||
| 80 | public String getIndicated() { | |
| 81 |
1
1. getIndicated : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Dividends::getIndicated → KILLED |
return indicated; |
| 82 | } | |
| 83 | ||
| 84 | @Override | |
| 85 | public boolean equals(Object o) { | |
| 86 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/Dividends::equals → KILLED |
if (this == o) return true; |
| 87 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/Dividends::equals → KILLED |
if (o == null || getClass() != o.getClass()) return false; |
| 88 | Dividends dividends = (Dividends) o; | |
| 89 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/Dividends::equals → KILLED |
return Objects.equal(exDate, dividends.exDate) && |
| 90 |
1
1. equals : negated conditional → KILLED |
Objects.equal(paymentDate, dividends.paymentDate) && |
| 91 |
1
1. equals : negated conditional → KILLED |
Objects.equal(recordDate, dividends.recordDate) && |
| 92 |
1
1. equals : negated conditional → KILLED |
Objects.equal(declaredDate, dividends.declaredDate) && |
| 93 |
1
1. equals : negated conditional → KILLED |
Objects.equal(amount, dividends.amount) && |
| 94 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : negated conditional → KILLED |
Objects.equal(flag, dividends.flag) && |
| 95 | type == dividends.type && | |
| 96 | qualified == dividends.qualified && | |
| 97 |
1
1. equals : negated conditional → KILLED |
Objects.equal(indicated, dividends.indicated); |
| 98 | } | |
| 99 | ||
| 100 | @Override | |
| 101 | public int hashCode() { | |
| 102 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/Dividends::hashCode → KILLED |
return Objects.hashCode(exDate, paymentDate, recordDate, declaredDate, amount, |
| 103 | flag, type, qualified, indicated); | |
| 104 | } | |
| 105 | ||
| 106 | @Override | |
| 107 | public String toString() { | |
| 108 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Dividends::toString → KILLED |
return MoreObjects.toStringHelper(this) |
| 109 | .add("exDate", exDate) | |
| 110 | .add("paymentDate", paymentDate) | |
| 111 | .add("recordDate", recordDate) | |
| 112 | .add("declaredDate", declaredDate) | |
| 113 | .add("amount", amount) | |
| 114 | .add("flag", flag) | |
| 115 | .add("type", type) | |
| 116 | .add("qualified", qualified) | |
| 117 | .add("indicated", indicated) | |
| 118 | .toString(); | |
| 119 | } | |
| 120 | } | |
Mutations | ||
| 49 |
1.1 |
|
| 53 |
1.1 |
|
| 57 |
1.1 |
|
| 61 |
1.1 |
|
| 65 |
1.1 |
|
| 69 |
1.1 |
|
| 73 |
1.1 |
|
| 77 |
1.1 |
|
| 81 |
1.1 |
|
| 86 |
1.1 2.2 |
|
| 87 |
1.1 2.2 3.3 |
|
| 89 |
1.1 2.2 |
|
| 90 |
1.1 |
|
| 91 |
1.1 |
|
| 92 |
1.1 |
|
| 93 |
1.1 |
|
| 94 |
1.1 2.2 3.3 |
|
| 97 |
1.1 |
|
| 102 |
1.1 |
|
| 108 |
1.1 |