1 | package pl.zankowski.iextrading4j.api.stocks; | |
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 Earning implements Serializable { | |
13 | ||
14 | private static final long serialVersionUID = -3254561425537119565L; | |
15 | ||
16 | private final BigDecimal actualEPS; | |
17 | private final BigDecimal consensusEPS; | |
18 | private final BigDecimal estimatedEPS; | |
19 | private final String announceTime; | |
20 | private final BigDecimal numberOfEstimates; | |
21 | private final BigDecimal EPSSurpriseDollar; | |
22 | private final LocalDate EPSReportDate; | |
23 | private final String fiscalPeriod; | |
24 | private final LocalDate fiscalEndDate; | |
25 | private final BigDecimal yearAgo; | |
26 | private final BigDecimal yearAgoChangePercent; | |
27 | private final String currency; | |
28 | ||
29 | @JsonCreator | |
30 | public Earning( | |
31 | @JsonProperty("actualEPS") final BigDecimal actualEPS, | |
32 | @JsonProperty("consensusEPS") final BigDecimal consensusEPS, | |
33 | @JsonProperty("estimatedEPS") final BigDecimal estimatedEPS, | |
34 | @JsonProperty("announceTime") final String announceTime, | |
35 | @JsonProperty("numberOfEstimates") final BigDecimal numberOfEstimates, | |
36 | @JsonProperty("EPSSurpriseDollar") final BigDecimal EPSSurpriseDollar, | |
37 | @JsonProperty("EPSReportDate") final LocalDate EPSReportDate, | |
38 | @JsonProperty("fiscalPeriod") final String fiscalPeriod, | |
39 | @JsonProperty("fiscalEndDate") final LocalDate fiscalEndDate, | |
40 | @JsonProperty("yearAgo") final BigDecimal yearAgo, | |
41 | @JsonProperty("yearAgoChangePercent") final BigDecimal yearAgoChangePercent, | |
42 | @JsonProperty("currency") final String currency) { | |
43 | this.actualEPS = actualEPS; | |
44 | this.consensusEPS = consensusEPS; | |
45 | this.estimatedEPS = estimatedEPS; | |
46 | this.announceTime = announceTime; | |
47 | this.numberOfEstimates = numberOfEstimates; | |
48 | this.EPSSurpriseDollar = EPSSurpriseDollar; | |
49 | this.EPSReportDate = EPSReportDate; | |
50 | this.fiscalPeriod = fiscalPeriod; | |
51 | this.fiscalEndDate = fiscalEndDate; | |
52 | this.yearAgo = yearAgo; | |
53 | this.yearAgoChangePercent = yearAgoChangePercent; | |
54 | this.currency = currency; | |
55 | } | |
56 | ||
57 | public BigDecimal getActualEPS() { | |
58 |
1
1. getActualEPS : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Earning::getActualEPS → KILLED |
return actualEPS; |
59 | } | |
60 | ||
61 | public BigDecimal getConsensusEPS() { | |
62 |
1
1. getConsensusEPS : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Earning::getConsensusEPS → KILLED |
return consensusEPS; |
63 | } | |
64 | ||
65 | public BigDecimal getEstimatedEPS() { | |
66 |
1
1. getEstimatedEPS : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Earning::getEstimatedEPS → KILLED |
return estimatedEPS; |
67 | } | |
68 | ||
69 | public String getAnnounceTime() { | |
70 |
1
1. getAnnounceTime : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Earning::getAnnounceTime → KILLED |
return announceTime; |
71 | } | |
72 | ||
73 | public BigDecimal getNumberOfEstimates() { | |
74 |
1
1. getNumberOfEstimates : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Earning::getNumberOfEstimates → KILLED |
return numberOfEstimates; |
75 | } | |
76 | ||
77 | @JsonProperty("EPSSurpriseDollar") | |
78 | public BigDecimal getEPSSurpriseDollar() { | |
79 |
1
1. getEPSSurpriseDollar : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Earning::getEPSSurpriseDollar → KILLED |
return EPSSurpriseDollar; |
80 | } | |
81 | ||
82 | @JsonProperty("EPSReportDate") | |
83 | public LocalDate getEPSReportDate() { | |
84 |
1
1. getEPSReportDate : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Earning::getEPSReportDate → KILLED |
return EPSReportDate; |
85 | } | |
86 | ||
87 | public String getFiscalPeriod() { | |
88 |
1
1. getFiscalPeriod : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Earning::getFiscalPeriod → KILLED |
return fiscalPeriod; |
89 | } | |
90 | ||
91 | public LocalDate getFiscalEndDate() { | |
92 |
1
1. getFiscalEndDate : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Earning::getFiscalEndDate → KILLED |
return fiscalEndDate; |
93 | } | |
94 | ||
95 | public BigDecimal getYearAgo() { | |
96 |
1
1. getYearAgo : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Earning::getYearAgo → KILLED |
return yearAgo; |
97 | } | |
98 | ||
99 | public BigDecimal getYearAgoChangePercent() { | |
100 |
1
1. getYearAgoChangePercent : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Earning::getYearAgoChangePercent → KILLED |
return yearAgoChangePercent; |
101 | } | |
102 | ||
103 | public String getCurrency() { | |
104 |
1
1. getCurrency : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Earning::getCurrency → KILLED |
return currency; |
105 | } | |
106 | ||
107 | @Override | |
108 | public boolean equals(final Object o) { | |
109 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/Earning::equals → KILLED |
if (this == o) return true; |
110 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/Earning::equals → KILLED |
if (o == null || getClass() != o.getClass()) return false; |
111 | final Earning earning = (Earning) o; | |
112 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/Earning::equals → KILLED |
return Objects.equal(actualEPS, earning.actualEPS) && |
113 |
1
1. equals : negated conditional → KILLED |
Objects.equal(consensusEPS, earning.consensusEPS) && |
114 |
1
1. equals : negated conditional → KILLED |
Objects.equal(estimatedEPS, earning.estimatedEPS) && |
115 |
1
1. equals : negated conditional → KILLED |
Objects.equal(announceTime, earning.announceTime) && |
116 |
1
1. equals : negated conditional → KILLED |
Objects.equal(numberOfEstimates, earning.numberOfEstimates) && |
117 |
1
1. equals : negated conditional → KILLED |
Objects.equal(EPSSurpriseDollar, earning.EPSSurpriseDollar) && |
118 |
1
1. equals : negated conditional → KILLED |
Objects.equal(EPSReportDate, earning.EPSReportDate) && |
119 |
1
1. equals : negated conditional → KILLED |
Objects.equal(fiscalPeriod, earning.fiscalPeriod) && |
120 |
1
1. equals : negated conditional → KILLED |
Objects.equal(fiscalEndDate, earning.fiscalEndDate) && |
121 |
1
1. equals : negated conditional → KILLED |
Objects.equal(yearAgo, earning.yearAgo) && |
122 |
1
1. equals : negated conditional → KILLED |
Objects.equal(yearAgoChangePercent, earning.yearAgoChangePercent) && |
123 |
1
1. equals : negated conditional → KILLED |
Objects.equal(currency, earning.currency); |
124 | } | |
125 | ||
126 | @Override | |
127 | public int hashCode() { | |
128 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/Earning::hashCode → KILLED |
return Objects.hashCode(actualEPS, consensusEPS, estimatedEPS, announceTime, numberOfEstimates, |
129 | EPSSurpriseDollar, EPSReportDate, fiscalPeriod, fiscalEndDate, yearAgo, yearAgoChangePercent, currency); | |
130 | } | |
131 | ||
132 | @Override | |
133 | public String toString() { | |
134 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Earning::toString → KILLED |
return MoreObjects.toStringHelper(this) |
135 | .add("actualEPS", actualEPS) | |
136 | .add("consensusEPS", consensusEPS) | |
137 | .add("estimatedEPS", estimatedEPS) | |
138 | .add("announceTime", announceTime) | |
139 | .add("numberOfEstimates", numberOfEstimates) | |
140 | .add("EPSSurpriseDollar", EPSSurpriseDollar) | |
141 | .add("EPSReportDate", EPSReportDate) | |
142 | .add("fiscalPeriod", fiscalPeriod) | |
143 | .add("fiscalEndDate", fiscalEndDate) | |
144 | .add("yearAgo", yearAgo) | |
145 | .add("yearAgoChangePercent", yearAgoChangePercent) | |
146 | .add("currency", currency) | |
147 | .toString(); | |
148 | } | |
149 | ||
150 | } | |
Mutations | ||
58 |
1.1 |
|
62 |
1.1 |
|
66 |
1.1 |
|
70 |
1.1 |
|
74 |
1.1 |
|
79 |
1.1 |
|
84 |
1.1 |
|
88 |
1.1 |
|
92 |
1.1 |
|
96 |
1.1 |
|
100 |
1.1 |
|
104 |
1.1 |
|
109 |
1.1 2.2 |
|
110 |
1.1 2.2 3.3 |
|
112 |
1.1 2.2 |
|
113 |
1.1 |
|
114 |
1.1 |
|
115 |
1.1 |
|
116 |
1.1 |
|
117 |
1.1 |
|
118 |
1.1 |
|
119 |
1.1 |
|
120 |
1.1 |
|
121 |
1.1 |
|
122 |
1.1 |
|
123 |
1.1 |
|
128 |
1.1 |
|
134 |
1.1 |