| 1 | package pl.zankowski.iextrading4j.api.stocks.v1; | |
| 2 | ||
| 3 | import java.math.BigDecimal; | |
| 4 | import java.time.LocalDate; | |
| 5 | import java.util.Objects; | |
| 6 | import java.util.StringJoiner; | |
| 7 | ||
| 8 | public abstract class Report extends BaseData { | |
| 9 | ||
| 10 | private static final long serialVersionUID = -4821122017946968543L; | |
| 11 | ||
| 12 | private final LocalDate reportDate; | |
| 13 | private final String filingType; | |
| 14 | private final LocalDate fiscalDate; | |
| 15 | private final BigDecimal fiscalQuarter; | |
| 16 | private final BigDecimal fiscalYear; | |
| 17 | private final String currency; | |
| 18 | ||
| 19 | protected Report(final String symbol, final String id, final String key, final String subkey, final Long updated, | |
| 20 | final LocalDate reportDate, final String filingType, final LocalDate fiscalDate, | |
| 21 | final BigDecimal fiscalQuarter, final BigDecimal fiscalYear, final String currency, | |
| 22 | final Long date) { | |
| 23 | super(symbol, id, key, subkey, updated, date); | |
| 24 | this.reportDate = reportDate; | |
| 25 | this.filingType = filingType; | |
| 26 | this.fiscalDate = fiscalDate; | |
| 27 | this.fiscalQuarter = fiscalQuarter; | |
| 28 | this.fiscalYear = fiscalYear; | |
| 29 | this.currency = currency; | |
| 30 | } | |
| 31 | ||
| 32 | public LocalDate getReportDate() { | |
| 33 |
1
1. getReportDate : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Report::getReportDate → KILLED |
return reportDate; |
| 34 | } | |
| 35 | ||
| 36 | public String getFilingType() { | |
| 37 |
1
1. getFilingType : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Report::getFilingType → KILLED |
return filingType; |
| 38 | } | |
| 39 | ||
| 40 | public LocalDate getFiscalDate() { | |
| 41 |
1
1. getFiscalDate : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Report::getFiscalDate → KILLED |
return fiscalDate; |
| 42 | } | |
| 43 | ||
| 44 | public BigDecimal getFiscalQuarter() { | |
| 45 |
1
1. getFiscalQuarter : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Report::getFiscalQuarter → KILLED |
return fiscalQuarter; |
| 46 | } | |
| 47 | ||
| 48 | public BigDecimal getFiscalYear() { | |
| 49 |
1
1. getFiscalYear : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/Report::getFiscalYear → KILLED |
return fiscalYear; |
| 50 | } | |
| 51 | ||
| 52 | public String getCurrency() { | |
| 53 |
1
1. getCurrency : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Report::getCurrency → KILLED |
return currency; |
| 54 | } | |
| 55 | ||
| 56 | @Override | |
| 57 | public boolean equals(Object o) { | |
| 58 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
| 59 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/v1/Report::equals → NO_COVERAGE |
return true; |
| 60 | } | |
| 61 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
| 62 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/Report::equals → KILLED |
return false; |
| 63 | } | |
| 64 |
1
1. equals : negated conditional → KILLED |
if (!super.equals(o)) { |
| 65 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/Report::equals → KILLED |
return false; |
| 66 | } | |
| 67 | Report report = (Report) o; | |
| 68 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/Report::equals → KILLED |
return Objects.equals(reportDate, report.reportDate) && |
| 69 |
1
1. equals : negated conditional → KILLED |
Objects.equals(filingType, report.filingType) && |
| 70 |
1
1. equals : negated conditional → KILLED |
Objects.equals(fiscalDate, report.fiscalDate) && |
| 71 |
1
1. equals : negated conditional → KILLED |
Objects.equals(fiscalQuarter, report.fiscalQuarter) && |
| 72 |
1
1. equals : negated conditional → KILLED |
Objects.equals(fiscalYear, report.fiscalYear) && |
| 73 |
1
1. equals : negated conditional → KILLED |
Objects.equals(currency, report.currency); |
| 74 | } | |
| 75 | ||
| 76 | @Override | |
| 77 | public int hashCode() { | |
| 78 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/v1/Report::hashCode → KILLED |
return Objects.hash(super.hashCode(), reportDate, filingType, fiscalDate, fiscalQuarter, fiscalYear, currency); |
| 79 | } | |
| 80 | ||
| 81 | @Override | |
| 82 | public String toString() { | |
| 83 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/Report::toString → NO_COVERAGE |
return new StringJoiner(", ", Report.class.getSimpleName() + "[", "]") |
| 84 | .add("reportDate=" + reportDate) | |
| 85 | .add("filingType='" + filingType + "'") | |
| 86 | .add("fiscalDate=" + fiscalDate) | |
| 87 | .add("fiscalQuarter=" + fiscalQuarter) | |
| 88 | .add("fiscalYear=" + fiscalYear) | |
| 89 | .add("currency='" + currency + "'") | |
| 90 | .toString(); | |
| 91 | } | |
| 92 | } | |
Mutations | ||
| 33 |
1.1 |
|
| 37 |
1.1 |
|
| 41 |
1.1 |
|
| 45 |
1.1 |
|
| 49 |
1.1 |
|
| 53 |
1.1 |
|
| 58 |
1.1 |
|
| 59 |
1.1 |
|
| 61 |
1.1 2.2 |
|
| 62 |
1.1 |
|
| 64 |
1.1 |
|
| 65 |
1.1 |
|
| 68 |
1.1 2.2 |
|
| 69 |
1.1 |
|
| 70 |
1.1 |
|
| 71 |
1.1 |
|
| 72 |
1.1 |
|
| 73 |
1.1 |
|
| 78 |
1.1 |
|
| 83 |
1.1 |