| 1 | package pl.zankowski.iextrading4j.api.corporate; | |
| 2 | ||
| 3 | import pl.zankowski.iextrading4j.api.stocks.v1.BaseData; | |
| 4 | ||
| 5 | import java.math.BigDecimal; | |
| 6 | import java.time.LocalDate; | |
| 7 | import java.util.Objects; | |
| 8 | import java.util.StringJoiner; | |
| 9 | ||
| 10 | public abstract class CorporateData extends BaseData { | |
| 11 | ||
| 12 | private static final long serialVersionUID = -1484007127414346002L; | |
| 13 | ||
| 14 | private final String refid; | |
| 15 | private final String source; | |
| 16 | private final LocalDate created; | |
| 17 | private final LocalDate lastUpdated; | |
| 18 | private final String notes; | |
| 19 | private final String figi; | |
| 20 | private final String description; | |
| 21 | private final String flag; | |
| 22 | private final String securityType; | |
| 23 | private final BigDecimal fromFactor; | |
| 24 | private final BigDecimal toFactor; | |
| 25 | private final BigDecimal ratio; | |
| 26 | private final BigDecimal parValue; | |
| 27 | private final String parValueCurrency; | |
| 28 | private final LocalDate exDate; | |
| 29 | private final String countryCode; | |
| 30 | ||
| 31 | protected CorporateData(final String symbol, | |
| 32 | final String id, | |
| 33 | final String key, | |
| 34 | final String subkey, | |
| 35 | final Long updated, | |
| 36 | final String refid, | |
| 37 | final String source, | |
| 38 | final Long date, | |
| 39 | final LocalDate created, | |
| 40 | final LocalDate lastUpdated, | |
| 41 | final String notes, | |
| 42 | final String figi, | |
| 43 | final BigDecimal parValue, | |
| 44 | final String parValueCurrency, | |
| 45 | final String description, | |
| 46 | final String flag, | |
| 47 | final String securityType, | |
| 48 | final BigDecimal fromFactor, | |
| 49 | final BigDecimal toFactor, | |
| 50 | final BigDecimal ratio, | |
| 51 | final LocalDate exDate, | |
| 52 | final String countryCode) { | |
| 53 | super(symbol, id, key, subkey, updated, date); | |
| 54 | this.refid = refid; | |
| 55 | this.source = source; | |
| 56 | this.created = created; | |
| 57 | this.lastUpdated = lastUpdated; | |
| 58 | this.notes = notes; | |
| 59 | this.figi = figi; | |
| 60 | this.parValue = parValue; | |
| 61 | this.parValueCurrency = parValueCurrency; | |
| 62 | this.description = description; | |
| 63 | this.flag = flag; | |
| 64 | this.securityType = securityType; | |
| 65 | this.fromFactor = fromFactor; | |
| 66 | this.toFactor = toFactor; | |
| 67 | this.ratio = ratio; | |
| 68 | this.exDate = exDate; | |
| 69 | this.countryCode = countryCode; | |
| 70 | } | |
| 71 | ||
| 72 | public String getRefid() { | |
| 73 |
1
1. getRefid : replaced return value with "" for pl/zankowski/iextrading4j/api/corporate/CorporateData::getRefid → KILLED |
return refid; |
| 74 | } | |
| 75 | ||
| 76 | public String getSource() { | |
| 77 |
1
1. getSource : replaced return value with "" for pl/zankowski/iextrading4j/api/corporate/CorporateData::getSource → KILLED |
return source; |
| 78 | } | |
| 79 | ||
| 80 | public LocalDate getCreated() { | |
| 81 |
1
1. getCreated : replaced return value with null for pl/zankowski/iextrading4j/api/corporate/CorporateData::getCreated → KILLED |
return created; |
| 82 | } | |
| 83 | ||
| 84 | public LocalDate getLastUpdated() { | |
| 85 |
1
1. getLastUpdated : replaced return value with null for pl/zankowski/iextrading4j/api/corporate/CorporateData::getLastUpdated → KILLED |
return lastUpdated; |
| 86 | } | |
| 87 | ||
| 88 | public String getNotes() { | |
| 89 |
1
1. getNotes : replaced return value with "" for pl/zankowski/iextrading4j/api/corporate/CorporateData::getNotes → KILLED |
return notes; |
| 90 | } | |
| 91 | ||
| 92 | public String getFigi() { | |
| 93 |
1
1. getFigi : replaced return value with "" for pl/zankowski/iextrading4j/api/corporate/CorporateData::getFigi → KILLED |
return figi; |
| 94 | } | |
| 95 | ||
| 96 | public String getDescription() { | |
| 97 |
1
1. getDescription : replaced return value with "" for pl/zankowski/iextrading4j/api/corporate/CorporateData::getDescription → KILLED |
return description; |
| 98 | } | |
| 99 | ||
| 100 | public String getFlag() { | |
| 101 |
1
1. getFlag : replaced return value with "" for pl/zankowski/iextrading4j/api/corporate/CorporateData::getFlag → KILLED |
return flag; |
| 102 | } | |
| 103 | ||
| 104 | public String getSecurityType() { | |
| 105 |
1
1. getSecurityType : replaced return value with "" for pl/zankowski/iextrading4j/api/corporate/CorporateData::getSecurityType → KILLED |
return securityType; |
| 106 | } | |
| 107 | ||
| 108 | public BigDecimal getFromFactor() { | |
| 109 |
1
1. getFromFactor : replaced return value with null for pl/zankowski/iextrading4j/api/corporate/CorporateData::getFromFactor → KILLED |
return fromFactor; |
| 110 | } | |
| 111 | ||
| 112 | public BigDecimal getToFactor() { | |
| 113 |
1
1. getToFactor : replaced return value with null for pl/zankowski/iextrading4j/api/corporate/CorporateData::getToFactor → KILLED |
return toFactor; |
| 114 | } | |
| 115 | ||
| 116 | public BigDecimal getRatio() { | |
| 117 |
1
1. getRatio : replaced return value with null for pl/zankowski/iextrading4j/api/corporate/CorporateData::getRatio → KILLED |
return ratio; |
| 118 | } | |
| 119 | ||
| 120 | public BigDecimal getParValue() { | |
| 121 |
1
1. getParValue : replaced return value with null for pl/zankowski/iextrading4j/api/corporate/CorporateData::getParValue → KILLED |
return parValue; |
| 122 | } | |
| 123 | ||
| 124 | public String getParValueCurrency() { | |
| 125 |
1
1. getParValueCurrency : replaced return value with "" for pl/zankowski/iextrading4j/api/corporate/CorporateData::getParValueCurrency → KILLED |
return parValueCurrency; |
| 126 | } | |
| 127 | ||
| 128 | public LocalDate getExDate() { | |
| 129 |
1
1. getExDate : replaced return value with null for pl/zankowski/iextrading4j/api/corporate/CorporateData::getExDate → KILLED |
return exDate; |
| 130 | } | |
| 131 | ||
| 132 | public String getCountryCode() { | |
| 133 |
1
1. getCountryCode : replaced return value with "" for pl/zankowski/iextrading4j/api/corporate/CorporateData::getCountryCode → KILLED |
return countryCode; |
| 134 | } | |
| 135 | ||
| 136 | @Override | |
| 137 | public boolean equals(final Object o) { | |
| 138 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
| 139 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/corporate/CorporateData::equals → NO_COVERAGE |
return true; |
| 140 | } | |
| 141 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
| 142 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/corporate/CorporateData::equals → KILLED |
return false; |
| 143 | } | |
| 144 |
1
1. equals : negated conditional → KILLED |
if (!super.equals(o)) { |
| 145 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/corporate/CorporateData::equals → KILLED |
return false; |
| 146 | } | |
| 147 | final CorporateData that = (CorporateData) o; | |
| 148 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/corporate/CorporateData::equals → KILLED |
return Objects.equals(refid, that.refid) && Objects.equals(source, that.source) && |
| 149 |
1
1. equals : negated conditional → KILLED |
Objects.equals(created, that.created) && |
| 150 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(lastUpdated, that.lastUpdated) && Objects.equals(notes, that.notes) && |
| 151 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(figi, that.figi) && Objects.equals(description, that.description) && |
| 152 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(flag, that.flag) && Objects.equals(securityType, that.securityType) && |
| 153 |
1
1. equals : negated conditional → KILLED |
Objects.equals(fromFactor, that.fromFactor) && |
| 154 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(toFactor, that.toFactor) && Objects.equals(ratio, that.ratio) && |
| 155 |
1
1. equals : negated conditional → KILLED |
Objects.equals(parValue, that.parValue) && |
| 156 |
1
1. equals : negated conditional → KILLED |
Objects.equals(parValueCurrency, that.parValueCurrency) && |
| 157 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(exDate, that.exDate) && Objects.equals(countryCode, that.countryCode); |
| 158 | } | |
| 159 | ||
| 160 | @Override | |
| 161 | public int hashCode() { | |
| 162 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/corporate/CorporateData::hashCode → KILLED |
return Objects.hash(super.hashCode(), refid, source, created, lastUpdated, notes, figi, description, flag, |
| 163 | securityType, fromFactor, toFactor, ratio, parValue, parValueCurrency, exDate, countryCode); | |
| 164 | } | |
| 165 | ||
| 166 | @Override | |
| 167 | public String toString() { | |
| 168 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/corporate/CorporateData::toString → NO_COVERAGE |
return new StringJoiner(", ", CorporateData.class.getSimpleName() + "[", "]") |
| 169 | .add("refid='" + refid + "'") | |
| 170 | .add("source='" + source + "'") | |
| 171 | .add("created=" + created) | |
| 172 | .add("lastUpdated=" + lastUpdated) | |
| 173 | .add("notes='" + notes + "'") | |
| 174 | .add("figi='" + figi + "'") | |
| 175 | .add("description='" + description + "'") | |
| 176 | .add("flag='" + flag + "'") | |
| 177 | .add("securityType='" + securityType + "'") | |
| 178 | .add("fromFactor=" + fromFactor) | |
| 179 | .add("toFactor=" + toFactor) | |
| 180 | .add("ratio=" + ratio) | |
| 181 | .add("parValue=" + parValue) | |
| 182 | .add("parValueCurrency='" + parValueCurrency + "'") | |
| 183 | .add("exDate=" + exDate) | |
| 184 | .add("countryCode='" + countryCode + "'") | |
| 185 | .add("symbol='" + getSymbol() + "'") | |
| 186 | .add("id='" + getId() + "'") | |
| 187 | .add("key='" + getKey() + "'") | |
| 188 | .add("subkey='" + getSubkey() + "'") | |
| 189 | .add("updated=" + getUpdated()) | |
| 190 | .toString(); | |
| 191 | } | |
| 192 | } | |
Mutations | ||
| 73 |
1.1 |
|
| 77 |
1.1 |
|
| 81 |
1.1 |
|
| 85 |
1.1 |
|
| 89 |
1.1 |
|
| 93 |
1.1 |
|
| 97 |
1.1 |
|
| 101 |
1.1 |
|
| 105 |
1.1 |
|
| 109 |
1.1 |
|
| 113 |
1.1 |
|
| 117 |
1.1 |
|
| 121 |
1.1 |
|
| 125 |
1.1 |
|
| 129 |
1.1 |
|
| 133 |
1.1 |
|
| 138 |
1.1 |
|
| 139 |
1.1 |
|
| 141 |
1.1 2.2 |
|
| 142 |
1.1 |
|
| 144 |
1.1 |
|
| 145 |
1.1 |
|
| 148 |
1.1 2.2 3.3 |
|
| 149 |
1.1 |
|
| 150 |
1.1 2.2 |
|
| 151 |
1.1 2.2 |
|
| 152 |
1.1 2.2 |
|
| 153 |
1.1 |
|
| 154 |
1.1 2.2 |
|
| 155 |
1.1 |
|
| 156 |
1.1 |
|
| 157 |
1.1 2.2 |
|
| 162 |
1.1 |
|
| 168 |
1.1 |