1 | package pl.zankowski.iextrading4j.api.stocks.v1; | |
2 | ||
3 | import com.fasterxml.jackson.annotation.JsonCreator; | |
4 | import com.fasterxml.jackson.annotation.JsonProperty; | |
5 | ||
6 | import java.math.BigDecimal; | |
7 | import java.time.LocalDate; | |
8 | import java.util.Objects; | |
9 | import java.util.StringJoiner; | |
10 | ||
11 | public class Dividends extends BaseData { | |
12 | ||
13 | private static final long serialVersionUID = -8671643610377057386L; | |
14 | ||
15 | private final Long refid; | |
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 String currency; | |
23 | private final String description; | |
24 | private final String frequency; | |
25 | ||
26 | @JsonCreator | |
27 | public Dividends( | |
28 | @JsonProperty("refid") final Long refid, | |
29 | @JsonProperty("symbol") final String symbol, | |
30 | @JsonProperty("id") final String id, | |
31 | @JsonProperty("key") final String key, | |
32 | @JsonProperty("subkey") final String subkey, | |
33 | @JsonProperty("updated") final Long updated, | |
34 | @JsonProperty("exDate") final LocalDate exDate, | |
35 | @JsonProperty("paymentDate") final LocalDate paymentDate, | |
36 | @JsonProperty("recordDate") final LocalDate recordDate, | |
37 | @JsonProperty("declaredDate") final LocalDate declaredDate, | |
38 | @JsonProperty("amount") final BigDecimal amount, | |
39 | @JsonProperty("flag") final String flag, | |
40 | @JsonProperty("currency") final String currency, | |
41 | @JsonProperty("description") final String description, | |
42 | @JsonProperty("frequency") final String frequency, | |
43 | @JsonProperty("date") final Long date) { | |
44 | super(symbol, id, key, subkey, updated, date); | |
45 | this.refid = refid; | |
46 | this.exDate = exDate; | |
47 | this.paymentDate = paymentDate; | |
48 | this.recordDate = recordDate; | |
49 | this.declaredDate = declaredDate; | |
50 | this.amount = amount; | |
51 | this.flag = flag; | |
52 | this.currency = currency; | |
53 | this.description = description; | |
54 | this.frequency = frequency; | |
55 | } | |
56 | ||
57 | public Long getRefid() { | |
58 |
1
1. getRefid : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/stocks/v1/Dividends::getRefid → KILLED |
return refid; |
59 | } | |
60 | ||
61 | public LocalDate getExDate() { | |
62 |
1
1. getExDate : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Dividends::getExDate → KILLED |
return exDate; |
63 | } | |
64 | ||
65 | public LocalDate getPaymentDate() { | |
66 |
1
1. getPaymentDate : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Dividends::getPaymentDate → KILLED |
return paymentDate; |
67 | } | |
68 | ||
69 | public LocalDate getRecordDate() { | |
70 |
1
1. getRecordDate : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Dividends::getRecordDate → KILLED |
return recordDate; |
71 | } | |
72 | ||
73 | public LocalDate getDeclaredDate() { | |
74 |
1
1. getDeclaredDate : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Dividends::getDeclaredDate → KILLED |
return declaredDate; |
75 | } | |
76 | ||
77 | public BigDecimal getAmount() { | |
78 |
1
1. getAmount : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Dividends::getAmount → KILLED |
return amount; |
79 | } | |
80 | ||
81 | public String getFlag() { | |
82 |
1
1. getFlag : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Dividends::getFlag → KILLED |
return flag; |
83 | } | |
84 | ||
85 | public String getCurrency() { | |
86 |
1
1. getCurrency : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Dividends::getCurrency → KILLED |
return currency; |
87 | } | |
88 | ||
89 | public String getDescription() { | |
90 |
1
1. getDescription : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Dividends::getDescription → KILLED |
return description; |
91 | } | |
92 | ||
93 | public String getFrequency() { | |
94 |
1
1. getFrequency : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Dividends::getFrequency → KILLED |
return frequency; |
95 | } | |
96 | ||
97 | @Override | |
98 | public boolean equals(final Object o) { | |
99 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
100 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/v1/Dividends::equals → KILLED |
return true; |
101 | } | |
102 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
103 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/Dividends::equals → KILLED |
return false; |
104 | } | |
105 |
1
1. equals : negated conditional → KILLED |
if (!super.equals(o)) { |
106 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/Dividends::equals → KILLED |
return false; |
107 | } | |
108 | final Dividends dividends = (Dividends) o; | |
109 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/Dividends::equals → KILLED |
return Objects.equals(refid, dividends.refid) && |
110 |
1
1. equals : negated conditional → KILLED |
Objects.equals(exDate, dividends.exDate) && |
111 |
1
1. equals : negated conditional → KILLED |
Objects.equals(paymentDate, dividends.paymentDate) && |
112 |
1
1. equals : negated conditional → KILLED |
Objects.equals(recordDate, dividends.recordDate) && |
113 |
1
1. equals : negated conditional → KILLED |
Objects.equals(declaredDate, dividends.declaredDate) && |
114 |
1
1. equals : negated conditional → KILLED |
Objects.equals(amount, dividends.amount) && |
115 |
1
1. equals : negated conditional → KILLED |
Objects.equals(flag, dividends.flag) && |
116 |
1
1. equals : negated conditional → KILLED |
Objects.equals(currency, dividends.currency) && |
117 |
1
1. equals : negated conditional → KILLED |
Objects.equals(description, dividends.description) && |
118 |
1
1. equals : negated conditional → KILLED |
Objects.equals(frequency, dividends.frequency); |
119 | } | |
120 | ||
121 | @Override | |
122 | public int hashCode() { | |
123 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/v1/Dividends::hashCode → KILLED |
return Objects.hash(super.hashCode(), refid, exDate, paymentDate, recordDate, declaredDate, |
124 | amount, flag, currency, description, frequency); | |
125 | } | |
126 | ||
127 | @Override | |
128 | public String toString() { | |
129 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Dividends::toString → KILLED |
return new StringJoiner(", ", Dividends.class.getSimpleName() + "[", "]") |
130 | .add("refid=" + refid) | |
131 | .add("exDate=" + exDate) | |
132 | .add("paymentDate=" + paymentDate) | |
133 | .add("recordDate=" + recordDate) | |
134 | .add("declaredDate=" + declaredDate) | |
135 | .add("amount=" + amount) | |
136 | .add("flag='" + flag + "'") | |
137 | .add("currency='" + currency + "'") | |
138 | .add("description='" + description + "'") | |
139 | .add("frequency='" + frequency + "'") | |
140 | .toString(); | |
141 | } | |
142 | } | |
Mutations | ||
58 |
1.1 |
|
62 |
1.1 |
|
66 |
1.1 |
|
70 |
1.1 |
|
74 |
1.1 |
|
78 |
1.1 |
|
82 |
1.1 |
|
86 |
1.1 |
|
90 |
1.1 |
|
94 |
1.1 |
|
99 |
1.1 |
|
100 |
1.1 |
|
102 |
1.1 2.2 |
|
103 |
1.1 |
|
105 |
1.1 |
|
106 |
1.1 |
|
109 |
1.1 2.2 |
|
110 |
1.1 |
|
111 |
1.1 |
|
112 |
1.1 |
|
113 |
1.1 |
|
114 |
1.1 |
|
115 |
1.1 |
|
116 |
1.1 |
|
117 |
1.1 |
|
118 |
1.1 |
|
123 |
1.1 |
|
129 |
1.1 |