| 1 | package pl.zankowski.iextrading4j.api.corporate; | |
| 2 | ||
| 3 | import com.fasterxml.jackson.annotation.JsonProperty; | |
| 4 | ||
| 5 | import java.math.BigDecimal; | |
| 6 | import java.time.LocalDate; | |
| 7 | import java.util.Objects; | |
| 8 | import java.util.StringJoiner; | |
| 9 | ||
| 10 | public class AdvancedSplits extends CorporateData { | |
| 11 | ||
| 12 | private static final long serialVersionUID = -959636960052328692L; | |
| 13 | ||
| 14 | private final LocalDate recordDate; | |
| 15 | private final LocalDate paymentDate; | |
| 16 | private final BigDecimal oldParValue; | |
| 17 | private final String oldParValueCurrency; | |
| 18 | private final String splitType; | |
| 19 | ||
| 20 | public AdvancedSplits( | |
| 21 | @JsonProperty("symbol") final String symbol, | |
| 22 | @JsonProperty("id") final String id, | |
| 23 | @JsonProperty("key") final String key, | |
| 24 | @JsonProperty("subkey") final String subkey, | |
| 25 | @JsonProperty("updated") final Long updated, | |
| 26 | @JsonProperty("refid") final String refid, | |
| 27 | @JsonProperty("source") final String source, | |
| 28 | @JsonProperty("date") final Long date, | |
| 29 | @JsonProperty("created") final LocalDate created, | |
| 30 | @JsonProperty("lastUpdated") final LocalDate lastUpdated, | |
| 31 | @JsonProperty("notes") final String notes, | |
| 32 | @JsonProperty("figi") final String figi, | |
| 33 | @JsonProperty("parValue") final BigDecimal parValue, | |
| 34 | @JsonProperty("parValueCurrency") final String parValueCurrency, | |
| 35 | @JsonProperty("exDate") final LocalDate exDate, | |
| 36 | @JsonProperty("fromFactor") final BigDecimal fromFactor, | |
| 37 | @JsonProperty("toFactor") final BigDecimal toFactor, | |
| 38 | @JsonProperty("ratio") final BigDecimal ratio, | |
| 39 | @JsonProperty("description") final String description, | |
| 40 | @JsonProperty("flag") final String flag, | |
| 41 | @JsonProperty("securityType") final String securityType, | |
| 42 | @JsonProperty("countryCode") final String countryCode, | |
| 43 | @JsonProperty("recordDate") final LocalDate recordDate, | |
| 44 | @JsonProperty("paymentDate") final LocalDate paymentDate, | |
| 45 | @JsonProperty("oldParValue") final BigDecimal oldParValue, | |
| 46 | @JsonProperty("oldParValueCurrency") final String oldParValueCurrency, | |
| 47 | @JsonProperty("splitType") final String splitType) { | |
| 48 | super(symbol, id, key, subkey, updated, refid, source, date, created, lastUpdated, notes, figi, parValue, | |
| 49 | parValueCurrency, description, flag, securityType, fromFactor, toFactor, ratio, exDate, countryCode); | |
| 50 | this.recordDate = recordDate; | |
| 51 | this.paymentDate = paymentDate; | |
| 52 | this.oldParValue = oldParValue; | |
| 53 | this.oldParValueCurrency = oldParValueCurrency; | |
| 54 | this.splitType = splitType; | |
| 55 | } | |
| 56 | ||
| 57 | public LocalDate getRecordDate() { | |
| 58 |
1
1. getRecordDate : replaced return value with null for pl/zankowski/iextrading4j/api/corporate/AdvancedSplits::getRecordDate → KILLED |
return recordDate; |
| 59 | } | |
| 60 | ||
| 61 | public LocalDate getPaymentDate() { | |
| 62 |
1
1. getPaymentDate : replaced return value with null for pl/zankowski/iextrading4j/api/corporate/AdvancedSplits::getPaymentDate → KILLED |
return paymentDate; |
| 63 | } | |
| 64 | ||
| 65 | public BigDecimal getOldParValue() { | |
| 66 |
1
1. getOldParValue : replaced return value with null for pl/zankowski/iextrading4j/api/corporate/AdvancedSplits::getOldParValue → KILLED |
return oldParValue; |
| 67 | } | |
| 68 | ||
| 69 | public String getOldParValueCurrency() { | |
| 70 |
1
1. getOldParValueCurrency : replaced return value with "" for pl/zankowski/iextrading4j/api/corporate/AdvancedSplits::getOldParValueCurrency → KILLED |
return oldParValueCurrency; |
| 71 | } | |
| 72 | ||
| 73 | public String getSplitType() { | |
| 74 |
1
1. getSplitType : replaced return value with "" for pl/zankowski/iextrading4j/api/corporate/AdvancedSplits::getSplitType → KILLED |
return splitType; |
| 75 | } | |
| 76 | ||
| 77 | @Override | |
| 78 | public boolean equals(final Object o) { | |
| 79 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
| 80 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/corporate/AdvancedSplits::equals → KILLED |
return true; |
| 81 | } | |
| 82 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
| 83 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/corporate/AdvancedSplits::equals → KILLED |
return false; |
| 84 | } | |
| 85 |
1
1. equals : negated conditional → KILLED |
if (!super.equals(o)) { |
| 86 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/corporate/AdvancedSplits::equals → KILLED |
return false; |
| 87 | } | |
| 88 | final AdvancedSplits that = (AdvancedSplits) o; | |
| 89 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/corporate/AdvancedSplits::equals → KILLED |
return Objects.equals(recordDate, that.recordDate) && |
| 90 |
1
1. equals : negated conditional → KILLED |
Objects.equals(paymentDate, that.paymentDate) && |
| 91 |
1
1. equals : negated conditional → KILLED |
Objects.equals(oldParValue, that.oldParValue) && |
| 92 |
1
1. equals : negated conditional → KILLED |
Objects.equals(oldParValueCurrency, that.oldParValueCurrency) && |
| 93 |
1
1. equals : negated conditional → KILLED |
Objects.equals(splitType, that.splitType); |
| 94 | } | |
| 95 | ||
| 96 | @Override | |
| 97 | public int hashCode() { | |
| 98 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/corporate/AdvancedSplits::hashCode → KILLED |
return Objects.hash(super.hashCode(), recordDate, paymentDate, oldParValue, oldParValueCurrency, splitType); |
| 99 | } | |
| 100 | ||
| 101 | @Override | |
| 102 | public String toString() { | |
| 103 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/corporate/AdvancedSplits::toString → KILLED |
return new StringJoiner(", ", AdvancedSplits.class.getSimpleName() + "[", "]") |
| 104 | .add("recordDate=" + recordDate) | |
| 105 | .add("paymentDate=" + paymentDate) | |
| 106 | .add("oldParValue=" + oldParValue) | |
| 107 | .add("oldParValueCurrency='" + oldParValueCurrency + "'") | |
| 108 | .add("splitType='" + splitType + "'") | |
| 109 | .add("refid='" + getRefid() + "'") | |
| 110 | .add("source='" + getSource() + "'") | |
| 111 | .add("date=" + getDate()) | |
| 112 | .add("created=" + getCreated()) | |
| 113 | .add("lastUpdated=" + getLastUpdated()) | |
| 114 | .add("notes='" + getNotes() + "'") | |
| 115 | .add("figi='" + getFigi() + "'") | |
| 116 | .add("description='" + getDescription() + "'") | |
| 117 | .add("flag='" + getFlag() + "'") | |
| 118 | .add("securityType='" + getSecurityType() + "'") | |
| 119 | .add("fromFactor=" + getFromFactor()) | |
| 120 | .add("toFactor=" + getToFactor()) | |
| 121 | .add("ratio=" + getRatio()) | |
| 122 | .add("parValue=" + getParValue()) | |
| 123 | .add("parValueCurrency='" + getParValueCurrency() + "'") | |
| 124 | .add("exDate=" + getExDate()) | |
| 125 | .add("countryCode='" + getCountryCode() + "'") | |
| 126 | .add("symbol='" + getSymbol() + "'") | |
| 127 | .add("id='" + getId() + "'") | |
| 128 | .add("key='" + getKey() + "'") | |
| 129 | .add("subkey='" + getSubkey() + "'") | |
| 130 | .add("updated=" + getUpdated()) | |
| 131 | .toString(); | |
| 132 | } | |
| 133 | } | |
Mutations | ||
| 58 |
1.1 |
|
| 62 |
1.1 |
|
| 66 |
1.1 |
|
| 70 |
1.1 |
|
| 74 |
1.1 |
|
| 79 |
1.1 |
|
| 80 |
1.1 |
|
| 82 |
1.1 2.2 |
|
| 83 |
1.1 |
|
| 85 |
1.1 |
|
| 86 |
1.1 |
|
| 89 |
1.1 2.2 |
|
| 90 |
1.1 |
|
| 91 |
1.1 |
|
| 92 |
1.1 |
|
| 93 |
1.1 |
|
| 98 |
1.1 |
|
| 103 |
1.1 |