| 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 Split extends BaseData { | |
| 12 | ||
| 13 | private static final long serialVersionUID = -6189411289398426730L; | |
| 14 | ||
| 15 | private final LocalDate exDate; | |
| 16 | private final LocalDate declaredDate; | |
| 17 | private final BigDecimal ratio; | |
| 18 | private final BigDecimal toFactor; | |
| 19 | private final BigDecimal fromFactor; | |
| 20 | private final String description; | |
| 21 | private final String refid; | |
| 22 | ||
| 23 | @JsonCreator | |
| 24 | public Split( | |
| 25 | @JsonProperty("symbol") final String symbol, | |
| 26 | @JsonProperty("id") final String id, | |
| 27 | @JsonProperty("key") final String key, | |
| 28 | @JsonProperty("subkey") final String subkey, | |
| 29 | @JsonProperty("updated") final Long updated, | |
| 30 | @JsonProperty("date") final Long date, | |
| 31 | @JsonProperty("exDate") final LocalDate exDate, | |
| 32 | @JsonProperty("declaredDate") final LocalDate declaredDate, | |
| 33 | @JsonProperty("ratio") final BigDecimal ratio, | |
| 34 | @JsonProperty("toFactor") final BigDecimal toFactor, | |
| 35 | @JsonProperty("fromFactor") final BigDecimal fromFactor, | |
| 36 | @JsonProperty("description") final String description, | |
| 37 | @JsonProperty("refId") final String refId) { | |
| 38 | super(symbol, id, key, subkey, updated, date); | |
| 39 | this.exDate = exDate; | |
| 40 | this.declaredDate = declaredDate; | |
| 41 | this.ratio = ratio; | |
| 42 | this.toFactor = toFactor; | |
| 43 | this.fromFactor = fromFactor; | |
| 44 | this.description = description; | |
| 45 | this.refid = refId; | |
| 46 | } | |
| 47 | ||
| 48 | public LocalDate getExDate() { | |
| 49 |
1
1. getExDate : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Split::getExDate → KILLED |
return exDate; |
| 50 | } | |
| 51 | ||
| 52 | public LocalDate getDeclaredDate() { | |
| 53 |
1
1. getDeclaredDate : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Split::getDeclaredDate → KILLED |
return declaredDate; |
| 54 | } | |
| 55 | ||
| 56 | public BigDecimal getRatio() { | |
| 57 |
1
1. getRatio : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Split::getRatio → KILLED |
return ratio; |
| 58 | } | |
| 59 | ||
| 60 | public BigDecimal getToFactor() { | |
| 61 |
1
1. getToFactor : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Split::getToFactor → KILLED |
return toFactor; |
| 62 | } | |
| 63 | ||
| 64 | public BigDecimal getFromFactor() { | |
| 65 |
1
1. getFromFactor : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Split::getFromFactor → KILLED |
return fromFactor; |
| 66 | } | |
| 67 | ||
| 68 | public String getDescription() { | |
| 69 |
1
1. getDescription : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Split::getDescription → KILLED |
return description; |
| 70 | } | |
| 71 | ||
| 72 | public String getRefid() { | |
| 73 |
1
1. getRefid : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Split::getRefid → KILLED |
return refid; |
| 74 | } | |
| 75 | ||
| 76 | @Override | |
| 77 | public boolean equals(final Object o) { | |
| 78 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
| 79 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/v1/Split::equals → KILLED |
return true; |
| 80 | } | |
| 81 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
| 82 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/Split::equals → KILLED |
return false; |
| 83 | } | |
| 84 |
1
1. equals : negated conditional → KILLED |
if (!super.equals(o)) { |
| 85 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/Split::equals → KILLED |
return false; |
| 86 | } | |
| 87 | final Split split = (Split) o; | |
| 88 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/Split::equals → KILLED |
return Objects.equals(exDate, split.exDate) && |
| 89 |
1
1. equals : negated conditional → KILLED |
Objects.equals(declaredDate, split.declaredDate) && |
| 90 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(ratio, split.ratio) && Objects.equals(toFactor, split.toFactor) && |
| 91 |
1
1. equals : negated conditional → KILLED |
Objects.equals(fromFactor, split.fromFactor) && |
| 92 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(description, split.description) && Objects.equals(refid, split.refid); |
| 93 | } | |
| 94 | ||
| 95 | @Override | |
| 96 | public int hashCode() { | |
| 97 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/v1/Split::hashCode → KILLED |
return Objects.hash(super.hashCode(), exDate, declaredDate, ratio, toFactor, fromFactor, description, refid); |
| 98 | } | |
| 99 | ||
| 100 | @Override | |
| 101 | public String toString() { | |
| 102 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Split::toString → KILLED |
return new StringJoiner(", ", Split.class.getSimpleName() + "[", "]") |
| 103 | .add("symbol='" + getSymbol() + "'") | |
| 104 | .add("id='" + getId() + "'") | |
| 105 | .add("key='" + getKey() + "'") | |
| 106 | .add("subkey='" + getSubkey() + "'") | |
| 107 | .add("updated=" + getUpdated()) | |
| 108 | .add("date=" + getDate()) | |
| 109 | .add("exDate=" + exDate) | |
| 110 | .add("declaredDate=" + declaredDate) | |
| 111 | .add("ratio=" + ratio) | |
| 112 | .add("toFactor=" + toFactor) | |
| 113 | .add("fromFactor=" + fromFactor) | |
| 114 | .add("description='" + description + "'") | |
| 115 | .add("refId='" + refid + "'") | |
| 116 | .toString(); | |
| 117 | } | |
| 118 | } | |
| 119 | ||
Mutations | ||
| 49 |
1.1 |
|
| 53 |
1.1 |
|
| 57 |
1.1 |
|
| 61 |
1.1 |
|
| 65 |
1.1 |
|
| 69 |
1.1 |
|
| 73 |
1.1 |
|
| 78 |
1.1 |
|
| 79 |
1.1 |
|
| 81 |
1.1 2.2 |
|
| 82 |
1.1 |
|
| 84 |
1.1 |
|
| 85 |
1.1 |
|
| 88 |
1.1 2.2 |
|
| 89 |
1.1 |
|
| 90 |
1.1 2.2 |
|
| 91 |
1.1 |
|
| 92 |
1.1 2.2 |
|
| 97 |
1.1 |
|
| 102 |
1.1 |