| 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 | import java.time.LocalDate; | |
| 11 | ||
| 12 | public class Estimate implements Serializable { | |
| 13 | ||
| 14 | private static final long serialVersionUID = -5638112355484292012L; | |
| 15 | ||
| 16 | private final BigDecimal consensusEPS; | |
| 17 | private final String announceTime; | |
| 18 | private final BigDecimal numberOfEstimates; | |
| 19 | private final String fiscalPeriod; | |
| 20 | private final LocalDate fiscalEndDate; | |
| 21 | private final LocalDate reportDate; | |
| 22 | private final String currency; | |
| 23 | ||
| 24 | @JsonCreator | |
| 25 | public Estimate( | |
| 26 | @JsonProperty("consensusEPS") final BigDecimal consensusEPS, | |
| 27 | @JsonProperty("announceTime") final String announceTime, | |
| 28 | @JsonProperty("numberOfEstimates") final BigDecimal numberOfEstimates, | |
| 29 | @JsonProperty("fiscalPeriod") final String fiscalPeriod, | |
| 30 | @JsonProperty("fiscalEndDate") final LocalDate fiscalEndDate, | |
| 31 | @JsonProperty("reportDate") final LocalDate reportDate, | |
| 32 | @JsonProperty("currency") final String currency) { | |
| 33 | this.consensusEPS = consensusEPS; | |
| 34 | this.announceTime = announceTime; | |
| 35 | this.numberOfEstimates = numberOfEstimates; | |
| 36 | this.fiscalPeriod = fiscalPeriod; | |
| 37 | this.fiscalEndDate = fiscalEndDate; | |
| 38 | this.reportDate = reportDate; | |
| 39 | this.currency = currency; | |
| 40 | } | |
| 41 | ||
| 42 | public BigDecimal getConsensusEPS() { | |
| 43 |
1
1. getConsensusEPS : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Estimate::getConsensusEPS → KILLED |
return consensusEPS; |
| 44 | } | |
| 45 | ||
| 46 | public String getAnnounceTime() { | |
| 47 |
1
1. getAnnounceTime : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Estimate::getAnnounceTime → KILLED |
return announceTime; |
| 48 | } | |
| 49 | ||
| 50 | public BigDecimal getNumberOfEstimates() { | |
| 51 |
1
1. getNumberOfEstimates : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Estimate::getNumberOfEstimates → KILLED |
return numberOfEstimates; |
| 52 | } | |
| 53 | ||
| 54 | public String getFiscalPeriod() { | |
| 55 |
1
1. getFiscalPeriod : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Estimate::getFiscalPeriod → KILLED |
return fiscalPeriod; |
| 56 | } | |
| 57 | ||
| 58 | public LocalDate getFiscalEndDate() { | |
| 59 |
1
1. getFiscalEndDate : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Estimate::getFiscalEndDate → KILLED |
return fiscalEndDate; |
| 60 | } | |
| 61 | ||
| 62 | public LocalDate getReportDate() { | |
| 63 |
1
1. getReportDate : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Estimate::getReportDate → KILLED |
return reportDate; |
| 64 | } | |
| 65 | ||
| 66 | public String getCurrency() { | |
| 67 |
1
1. getCurrency : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Estimate::getCurrency → KILLED |
return currency; |
| 68 | } | |
| 69 | ||
| 70 | @Override | |
| 71 | public boolean equals(final Object o) { | |
| 72 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/v1/Estimate::equals → KILLED |
if (this == o) return true; |
| 73 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/Estimate::equals → KILLED |
if (o == null || getClass() != o.getClass()) return false; |
| 74 | final Estimate estimate = (Estimate) o; | |
| 75 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/Estimate::equals → KILLED |
return Objects.equal(consensusEPS, estimate.consensusEPS) && |
| 76 |
1
1. equals : negated conditional → KILLED |
Objects.equal(announceTime, estimate.announceTime) && |
| 77 |
1
1. equals : negated conditional → KILLED |
Objects.equal(numberOfEstimates, estimate.numberOfEstimates) && |
| 78 |
1
1. equals : negated conditional → KILLED |
Objects.equal(fiscalPeriod, estimate.fiscalPeriod) && |
| 79 |
1
1. equals : negated conditional → KILLED |
Objects.equal(fiscalEndDate, estimate.fiscalEndDate) && |
| 80 |
1
1. equals : negated conditional → KILLED |
Objects.equal(currency, estimate.currency) && |
| 81 |
1
1. equals : negated conditional → KILLED |
Objects.equal(reportDate, estimate.reportDate); |
| 82 | } | |
| 83 | ||
| 84 | @Override | |
| 85 | public int hashCode() { | |
| 86 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/v1/Estimate::hashCode → KILLED |
return Objects.hashCode(consensusEPS, announceTime, numberOfEstimates, |
| 87 | fiscalPeriod, fiscalEndDate, reportDate, currency); | |
| 88 | } | |
| 89 | ||
| 90 | @Override | |
| 91 | public String toString() { | |
| 92 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Estimate::toString → KILLED |
return MoreObjects.toStringHelper(this) |
| 93 | .add("consensusEPS", consensusEPS) | |
| 94 | .add("announceTime", announceTime) | |
| 95 | .add("numberOfEstimates", numberOfEstimates) | |
| 96 | .add("fiscalPeriod", fiscalPeriod) | |
| 97 | .add("fiscalEndDate", fiscalEndDate) | |
| 98 | .add("reportDate", reportDate) | |
| 99 | .add("currency", currency) | |
| 100 | .toString(); | |
| 101 | } | |
| 102 | ||
| 103 | } | |
Mutations | ||
| 43 |
1.1 |
|
| 47 |
1.1 |
|
| 51 |
1.1 |
|
| 55 |
1.1 |
|
| 59 |
1.1 |
|
| 63 |
1.1 |
|
| 67 |
1.1 |
|
| 72 |
1.1 2.2 |
|
| 73 |
1.1 2.2 3.3 |
|
| 75 |
1.1 2.2 |
|
| 76 |
1.1 |
|
| 77 |
1.1 |
|
| 78 |
1.1 |
|
| 79 |
1.1 |
|
| 80 |
1.1 |
|
| 81 |
1.1 |
|
| 86 |
1.1 |
|
| 92 |
1.1 |