1 | package pl.zankowski.iextrading4j.api.corporate; | |
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 AdvancedDistribution extends CorporateData { | |
12 | ||
13 | private static final long serialVersionUID = 3622240354483747567L; | |
14 | ||
15 | private final LocalDate recordDate; | |
16 | private final LocalDate paymentDate; | |
17 | private final LocalDate withdrawalFromDate; | |
18 | private final LocalDate withdrawalToDate; | |
19 | private final LocalDate electionDate; | |
20 | private final BigDecimal minPrice; | |
21 | private final BigDecimal maxPrice; | |
22 | private final BigDecimal hasWithdrawalRights; | |
23 | ||
24 | @JsonCreator | |
25 | public AdvancedDistribution( | |
26 | @JsonProperty("symbol") final String symbol, | |
27 | @JsonProperty("id") final String id, | |
28 | @JsonProperty("key") final String key, | |
29 | @JsonProperty("subkey") final String subkey, | |
30 | @JsonProperty("updated") final Long updated, | |
31 | @JsonProperty("refid") final String refid, | |
32 | @JsonProperty("source") final String source, | |
33 | @JsonProperty("date") final Long date, | |
34 | @JsonProperty("created") final LocalDate created, | |
35 | @JsonProperty("lastUpdated") final LocalDate lastUpdated, | |
36 | @JsonProperty("notes") final String notes, | |
37 | @JsonProperty("figi") final String figi, | |
38 | @JsonProperty("parValue") final BigDecimal parValue, | |
39 | @JsonProperty("parValueCurrency") final String parValueCurrency, | |
40 | @JsonProperty("exDate") final LocalDate exDate, | |
41 | @JsonProperty("recordDate") final LocalDate recordDate, | |
42 | @JsonProperty("paymentDate") final LocalDate paymentDate, | |
43 | @JsonProperty("withdrawalFromDate") final LocalDate withdrawalFromDate, | |
44 | @JsonProperty("withdrawalToDate") final LocalDate withdrawalToDate, | |
45 | @JsonProperty("electionDate") final LocalDate electionDate, | |
46 | @JsonProperty("fromFactor") final BigDecimal fromFactor, | |
47 | @JsonProperty("toFactor") final BigDecimal toFactor, | |
48 | @JsonProperty("ratio") final BigDecimal ratio, | |
49 | @JsonProperty("minPrice") final BigDecimal minPrice, | |
50 | @JsonProperty("maxPrice") final BigDecimal maxPrice, | |
51 | @JsonProperty("description") final String description, | |
52 | @JsonProperty("flag") final String flag, | |
53 | @JsonProperty("securityType") final String securityType, | |
54 | @JsonProperty("hasWithdrawalRights") final BigDecimal hasWithdrawalRights, | |
55 | @JsonProperty("countryCode") final String countryCode) { | |
56 | super(symbol, id, key, subkey, updated, refid, source, date, created, lastUpdated, notes, figi, parValue, | |
57 | parValueCurrency, description, flag, securityType, fromFactor, toFactor, ratio, exDate, countryCode); | |
58 | this.recordDate = recordDate; | |
59 | this.paymentDate = paymentDate; | |
60 | this.withdrawalFromDate = withdrawalFromDate; | |
61 | this.withdrawalToDate = withdrawalToDate; | |
62 | this.electionDate = electionDate; | |
63 | this.minPrice = minPrice; | |
64 | this.maxPrice = maxPrice; | |
65 | this.hasWithdrawalRights = hasWithdrawalRights; | |
66 | } | |
67 | ||
68 | public LocalDate getRecordDate() { | |
69 |
1
1. getRecordDate : replaced return value with null for pl/zankowski/iextrading4j/api/corporate/AdvancedDistribution::getRecordDate → KILLED |
return recordDate; |
70 | } | |
71 | ||
72 | public LocalDate getPaymentDate() { | |
73 |
1
1. getPaymentDate : replaced return value with null for pl/zankowski/iextrading4j/api/corporate/AdvancedDistribution::getPaymentDate → KILLED |
return paymentDate; |
74 | } | |
75 | ||
76 | public LocalDate getWithdrawalFromDate() { | |
77 |
1
1. getWithdrawalFromDate : replaced return value with null for pl/zankowski/iextrading4j/api/corporate/AdvancedDistribution::getWithdrawalFromDate → KILLED |
return withdrawalFromDate; |
78 | } | |
79 | ||
80 | public LocalDate getWithdrawalToDate() { | |
81 |
1
1. getWithdrawalToDate : replaced return value with null for pl/zankowski/iextrading4j/api/corporate/AdvancedDistribution::getWithdrawalToDate → KILLED |
return withdrawalToDate; |
82 | } | |
83 | ||
84 | public LocalDate getElectionDate() { | |
85 |
1
1. getElectionDate : replaced return value with null for pl/zankowski/iextrading4j/api/corporate/AdvancedDistribution::getElectionDate → KILLED |
return electionDate; |
86 | } | |
87 | ||
88 | public BigDecimal getMinPrice() { | |
89 |
1
1. getMinPrice : replaced return value with null for pl/zankowski/iextrading4j/api/corporate/AdvancedDistribution::getMinPrice → KILLED |
return minPrice; |
90 | } | |
91 | ||
92 | public BigDecimal getMaxPrice() { | |
93 |
1
1. getMaxPrice : replaced return value with null for pl/zankowski/iextrading4j/api/corporate/AdvancedDistribution::getMaxPrice → KILLED |
return maxPrice; |
94 | } | |
95 | ||
96 | public BigDecimal getHasWithdrawalRights() { | |
97 |
1
1. getHasWithdrawalRights : replaced return value with null for pl/zankowski/iextrading4j/api/corporate/AdvancedDistribution::getHasWithdrawalRights → KILLED |
return hasWithdrawalRights; |
98 | } | |
99 | ||
100 | @Override | |
101 | public boolean equals(final Object o) { | |
102 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
103 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/corporate/AdvancedDistribution::equals → KILLED |
return true; |
104 | } | |
105 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
106 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/corporate/AdvancedDistribution::equals → KILLED |
return false; |
107 | } | |
108 |
1
1. equals : negated conditional → KILLED |
if (!super.equals(o)) { |
109 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/corporate/AdvancedDistribution::equals → KILLED |
return false; |
110 | } | |
111 | final AdvancedDistribution that = (AdvancedDistribution) o; | |
112 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/corporate/AdvancedDistribution::equals → KILLED |
return Objects.equals(recordDate, that.recordDate) && |
113 |
1
1. equals : negated conditional → KILLED |
Objects.equals(paymentDate, that.paymentDate) && |
114 |
1
1. equals : negated conditional → KILLED |
Objects.equals(withdrawalFromDate, that.withdrawalFromDate) && |
115 |
1
1. equals : negated conditional → KILLED |
Objects.equals(withdrawalToDate, that.withdrawalToDate) && |
116 |
1
1. equals : negated conditional → KILLED |
Objects.equals(electionDate, that.electionDate) && |
117 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(minPrice, that.minPrice) && Objects.equals(maxPrice, that.maxPrice) && |
118 |
1
1. equals : negated conditional → KILLED |
Objects.equals(hasWithdrawalRights, that.hasWithdrawalRights); |
119 | } | |
120 | ||
121 | @Override | |
122 | public int hashCode() { | |
123 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/corporate/AdvancedDistribution::hashCode → KILLED |
return Objects.hash(super.hashCode(), recordDate, paymentDate, withdrawalFromDate, withdrawalToDate, |
124 | electionDate, minPrice, maxPrice, hasWithdrawalRights); | |
125 | } | |
126 | ||
127 | @Override | |
128 | public String toString() { | |
129 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/corporate/AdvancedDistribution::toString → KILLED |
return new StringJoiner(", ", AdvancedDistribution.class.getSimpleName() + "[", "]") |
130 | .add("recordDate=" + recordDate) | |
131 | .add("paymentDate=" + paymentDate) | |
132 | .add("withdrawalFromDate=" + withdrawalFromDate) | |
133 | .add("withdrawalToDate=" + withdrawalToDate) | |
134 | .add("electionDate=" + electionDate) | |
135 | .add("minPrice=" + minPrice) | |
136 | .add("maxPrice=" + maxPrice) | |
137 | .add("hasWithdrawalRights=" + hasWithdrawalRights) | |
138 | .add("countryCode='" + getCountryCode() + "'") | |
139 | .add("refid='" + getRefid() + "'") | |
140 | .add("source='" + getSource() + "'") | |
141 | .add("date=" + getDate()) | |
142 | .add("created=" + getCreated()) | |
143 | .add("lastUpdated=" + getLastUpdated()) | |
144 | .add("notes='" + getNotes() + "'") | |
145 | .add("figi='" + getFigi() + "'") | |
146 | .add("description='" + getDescription() + "'") | |
147 | .add("flag='" + getFlag() + "'") | |
148 | .add("securityType='" + getSecurityType() + "'") | |
149 | .add("fromFactor=" + getFromFactor()) | |
150 | .add("toFactor=" + getToFactor()) | |
151 | .add("ratio=" + getRatio()) | |
152 | .add("parValue=" + getParValue()) | |
153 | .add("parValueCurrency='" + getParValueCurrency() + "'") | |
154 | .add("exDate=" + getExDate()) | |
155 | .add("symbol='" + getSymbol() + "'") | |
156 | .add("id='" + getId() + "'") | |
157 | .add("key='" + getKey() + "'") | |
158 | .add("subkey='" + getSubkey() + "'") | |
159 | .add("updated=" + getUpdated()) | |
160 | .toString(); | |
161 | } | |
162 | } | |
Mutations | ||
69 |
1.1 |
|
73 |
1.1 |
|
77 |
1.1 |
|
81 |
1.1 |
|
85 |
1.1 |
|
89 |
1.1 |
|
93 |
1.1 |
|
97 |
1.1 |
|
102 |
1.1 |
|
103 |
1.1 |
|
105 |
1.1 2.2 |
|
106 |
1.1 |
|
108 |
1.1 |
|
109 |
1.1 |
|
112 |
1.1 2.2 |
|
113 |
1.1 |
|
114 |
1.1 |
|
115 |
1.1 |
|
116 |
1.1 |
|
117 |
1.1 2.2 |
|
118 |
1.1 |
|
123 |
1.1 |
|
129 |
1.1 |