| 1 | package pl.zankowski.iextrading4j.api.stocks.v1; | |
| 2 | ||
| 3 | import com.fasterxml.jackson.annotation.JsonCreator; | |
| 4 | import com.fasterxml.jackson.annotation.JsonProperty; | |
| 5 | import com.google.common.base.MoreObjects; | |
| 6 | import com.google.common.base.Objects; | |
| 7 | ||
| 8 | import java.io.Serializable; | |
| 9 | import java.math.BigDecimal; | |
| 10 | ||
| 11 | public class RecommendationTrends implements Serializable { | |
| 12 | ||
| 13 | private static final long serialVersionUID = -116711859222329067L; | |
| 14 | ||
| 15 | private final Long consensusEndDate; | |
| 16 | private final Long consensusStartDate; | |
| 17 | private final Long corporateActionsAppliedDate; | |
| 18 | private final BigDecimal ratingBuy; | |
| 19 | private final BigDecimal ratingHold; | |
| 20 | private final BigDecimal ratingNone; | |
| 21 | private final BigDecimal ratingOverweight; | |
| 22 | private final BigDecimal ratingScaleMark; | |
| 23 | private final BigDecimal ratingSell; | |
| 24 | private final BigDecimal ratingUnderweight; | |
| 25 | ||
| 26 | @JsonCreator | |
| 27 | public RecommendationTrends( | |
| 28 | @JsonProperty("consensusEndDate") final Long consensusEndDate, | |
| 29 | @JsonProperty("consensusStartDate") final Long consensusStartDate, | |
| 30 | @JsonProperty("corporateActionsAppliedDate") final Long corporateActionsAppliedDate, | |
| 31 | @JsonProperty("ratingBuy") final BigDecimal ratingBuy, | |
| 32 | @JsonProperty("ratingHold") final BigDecimal ratingHold, | |
| 33 | @JsonProperty("ratingNone") final BigDecimal ratingNone, | |
| 34 | @JsonProperty("ratingOverweight") final BigDecimal ratingOverweight, | |
| 35 | @JsonProperty("ratingScaleMark") final BigDecimal ratingScaleMark, | |
| 36 | @JsonProperty("ratingSell") final BigDecimal ratingSell, | |
| 37 | @JsonProperty("ratingUnderweight") final BigDecimal ratingUnderweight) { | |
| 38 | this.consensusEndDate = consensusEndDate; | |
| 39 | this.consensusStartDate = consensusStartDate; | |
| 40 | this.corporateActionsAppliedDate = corporateActionsAppliedDate; | |
| 41 | this.ratingBuy = ratingBuy; | |
| 42 | this.ratingHold = ratingHold; | |
| 43 | this.ratingNone = ratingNone; | |
| 44 | this.ratingOverweight = ratingOverweight; | |
| 45 | this.ratingScaleMark = ratingScaleMark; | |
| 46 | this.ratingSell = ratingSell; | |
| 47 | this.ratingUnderweight = ratingUnderweight; | |
| 48 | } | |
| 49 | ||
| 50 | public Long getConsensusEndDate() { | |
| 51 |
1
1. getConsensusEndDate : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getConsensusEndDate → KILLED |
return consensusEndDate; |
| 52 | } | |
| 53 | ||
| 54 | public Long getConsensusStartDate() { | |
| 55 |
1
1. getConsensusStartDate : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getConsensusStartDate → KILLED |
return consensusStartDate; |
| 56 | } | |
| 57 | ||
| 58 | public Long getCorporateActionsAppliedDate() { | |
| 59 |
1
1. getCorporateActionsAppliedDate : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getCorporateActionsAppliedDate → KILLED |
return corporateActionsAppliedDate; |
| 60 | } | |
| 61 | ||
| 62 | public BigDecimal getRatingBuy() { | |
| 63 |
1
1. getRatingBuy : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getRatingBuy → KILLED |
return ratingBuy; |
| 64 | } | |
| 65 | ||
| 66 | public BigDecimal getRatingHold() { | |
| 67 |
1
1. getRatingHold : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getRatingHold → KILLED |
return ratingHold; |
| 68 | } | |
| 69 | ||
| 70 | public BigDecimal getRatingNone() { | |
| 71 |
1
1. getRatingNone : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getRatingNone → KILLED |
return ratingNone; |
| 72 | } | |
| 73 | ||
| 74 | public BigDecimal getRatingOverweight() { | |
| 75 |
1
1. getRatingOverweight : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getRatingOverweight → KILLED |
return ratingOverweight; |
| 76 | } | |
| 77 | ||
| 78 | public BigDecimal getRatingScaleMark() { | |
| 79 |
1
1. getRatingScaleMark : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getRatingScaleMark → KILLED |
return ratingScaleMark; |
| 80 | } | |
| 81 | ||
| 82 | public BigDecimal getRatingSell() { | |
| 83 |
1
1. getRatingSell : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getRatingSell → KILLED |
return ratingSell; |
| 84 | } | |
| 85 | ||
| 86 | public BigDecimal getRatingUnderweight() { | |
| 87 |
1
1. getRatingUnderweight : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getRatingUnderweight → KILLED |
return ratingUnderweight; |
| 88 | } | |
| 89 | ||
| 90 | @Override | |
| 91 | public boolean equals(final Object o) { | |
| 92 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
| 93 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::equals → KILLED |
return true; |
| 94 | } | |
| 95 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
| 96 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::equals → KILLED |
return false; |
| 97 | } | |
| 98 | final RecommendationTrends that = (RecommendationTrends) o; | |
| 99 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::equals → KILLED |
return Objects.equal(consensusEndDate, that.consensusEndDate) && |
| 100 |
1
1. equals : negated conditional → KILLED |
Objects.equal(consensusStartDate, that.consensusStartDate) && |
| 101 |
1
1. equals : negated conditional → KILLED |
Objects.equal(corporateActionsAppliedDate, that.corporateActionsAppliedDate) && |
| 102 |
1
1. equals : negated conditional → KILLED |
Objects.equal(ratingBuy, that.ratingBuy) && |
| 103 |
1
1. equals : negated conditional → KILLED |
Objects.equal(ratingHold, that.ratingHold) && |
| 104 |
1
1. equals : negated conditional → KILLED |
Objects.equal(ratingNone, that.ratingNone) && |
| 105 |
1
1. equals : negated conditional → KILLED |
Objects.equal(ratingOverweight, that.ratingOverweight) && |
| 106 |
1
1. equals : negated conditional → KILLED |
Objects.equal(ratingScaleMark, that.ratingScaleMark) && |
| 107 |
1
1. equals : negated conditional → KILLED |
Objects.equal(ratingSell, that.ratingSell) && |
| 108 |
1
1. equals : negated conditional → KILLED |
Objects.equal(ratingUnderweight, that.ratingUnderweight); |
| 109 | } | |
| 110 | ||
| 111 | @Override | |
| 112 | public int hashCode() { | |
| 113 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::hashCode → KILLED |
return Objects.hashCode(consensusEndDate, consensusStartDate, corporateActionsAppliedDate, ratingBuy, ratingHold, ratingNone, ratingOverweight, ratingScaleMark, ratingSell, ratingUnderweight); |
| 114 | } | |
| 115 | ||
| 116 | @Override | |
| 117 | public String toString() { | |
| 118 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::toString → KILLED |
return MoreObjects.toStringHelper(this) |
| 119 | .add("consensusEndDate", consensusEndDate) | |
| 120 | .add("consensusStartDate", consensusStartDate) | |
| 121 | .add("corporateActionsAppliedDate", corporateActionsAppliedDate) | |
| 122 | .add("ratingBuy", ratingBuy) | |
| 123 | .add("ratingHold", ratingHold) | |
| 124 | .add("ratingNone", ratingNone) | |
| 125 | .add("ratingOverweight", ratingOverweight) | |
| 126 | .add("ratingScaleMark", ratingScaleMark) | |
| 127 | .add("ratingSell", ratingSell) | |
| 128 | .add("ratingUnderweight", ratingUnderweight) | |
| 129 | .toString(); | |
| 130 | } | |
| 131 | ||
| 132 | } | |
Mutations | ||
| 51 |
1.1 |
|
| 55 |
1.1 |
|
| 59 |
1.1 |
|
| 63 |
1.1 |
|
| 67 |
1.1 |
|
| 71 |
1.1 |
|
| 75 |
1.1 |
|
| 79 |
1.1 |
|
| 83 |
1.1 |
|
| 87 |
1.1 |
|
| 92 |
1.1 |
|
| 93 |
1.1 |
|
| 95 |
1.1 2.2 |
|
| 96 |
1.1 |
|
| 99 |
1.1 2.2 |
|
| 100 |
1.1 |
|
| 101 |
1.1 |
|
| 102 |
1.1 |
|
| 103 |
1.1 |
|
| 104 |
1.1 |
|
| 105 |
1.1 |
|
| 106 |
1.1 |
|
| 107 |
1.1 |
|
| 108 |
1.1 |
|
| 113 |
1.1 |
|
| 118 |
1.1 |