| 1 | package pl.zankowski.iextrading4j.api.alternative; | |
| 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 | import java.io.Serializable; | |
| 8 | import java.math.BigDecimal; | |
| 9 | ||
| 10 | public class SentimentEvent implements Serializable { | |
| 11 | ||
| 12 | private static final long serialVersionUID = -4716020002316419582L; | |
| 13 | ||
| 14 | private final String symbol; | |
| 15 | private final BigDecimal score; | |
| 16 | private final BigDecimal sequence; | |
| 17 | private final BigDecimal date; | |
| 18 | ||
| 19 | @JsonCreator | |
| 20 | public SentimentEvent( | |
| 21 | @JsonProperty("symbol") final String symbol, | |
| 22 | @JsonProperty("score") final BigDecimal score, | |
| 23 | @JsonProperty("sequence") final BigDecimal sequence, | |
| 24 | @JsonProperty("date") final BigDecimal date) { | |
| 25 | this.symbol = symbol; | |
| 26 | this.score = score; | |
| 27 | this.sequence = sequence; | |
| 28 | this.date = date; | |
| 29 | } | |
| 30 | ||
| 31 | public String getSymbol() { | |
| 32 |
1
1. getSymbol : replaced return value with "" for pl/zankowski/iextrading4j/api/alternative/SentimentEvent::getSymbol → KILLED |
return symbol; |
| 33 | } | |
| 34 | | |
| 35 | public BigDecimal getScore() { | |
| 36 |
1
1. getScore : replaced return value with null for pl/zankowski/iextrading4j/api/alternative/SentimentEvent::getScore → KILLED |
return score; |
| 37 | } | |
| 38 | ||
| 39 | public BigDecimal getSequence() { | |
| 40 |
1
1. getSequence : replaced return value with null for pl/zankowski/iextrading4j/api/alternative/SentimentEvent::getSequence → KILLED |
return sequence; |
| 41 | } | |
| 42 | ||
| 43 | public BigDecimal getDate() { | |
| 44 |
1
1. getDate : replaced return value with null for pl/zankowski/iextrading4j/api/alternative/SentimentEvent::getDate → KILLED |
return date; |
| 45 | } | |
| 46 | ||
| 47 | @Override | |
| 48 | public boolean equals(final Object o) { | |
| 49 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/alternative/SentimentEvent::equals → KILLED |
if (this == o) return true; |
| 50 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/alternative/SentimentEvent::equals → KILLED |
if (o == null || getClass() != o.getClass()) return false; |
| 51 | final SentimentEvent sentiment1 = (SentimentEvent) o; | |
| 52 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/alternative/SentimentEvent::equals → KILLED |
return Objects.equal(symbol, sentiment1.symbol) && |
| 53 |
1
1. equals : negated conditional → KILLED |
Objects.equal(score, sentiment1.score) && |
| 54 |
1
1. equals : negated conditional → KILLED |
Objects.equal(sequence, sentiment1.sequence) && |
| 55 |
1
1. equals : negated conditional → KILLED |
Objects.equal(date, sentiment1.date); |
| 56 | } | |
| 57 | ||
| 58 | @Override | |
| 59 | public int hashCode() { | |
| 60 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/alternative/SentimentEvent::hashCode → KILLED |
return Objects.hashCode(symbol, score, sequence, date); |
| 61 | } | |
| 62 | ||
| 63 | @Override | |
| 64 | public String toString() { | |
| 65 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/alternative/SentimentEvent::toString → KILLED |
return MoreObjects.toStringHelper(this) |
| 66 | .add("symbol", symbol) | |
| 67 | .add("score", score) | |
| 68 | .add("sequence", sequence) | |
| 69 | .add("date", date) | |
| 70 | .toString(); | |
| 71 | } | |
| 72 | ||
| 73 | } | |
Mutations | ||
| 32 |
1.1 |
|
| 36 |
1.1 |
|
| 40 |
1.1 |
|
| 44 |
1.1 |
|
| 49 |
1.1 2.2 |
|
| 50 |
1.1 2.2 3.3 |
|
| 52 |
1.1 2.2 |
|
| 53 |
1.1 |
|
| 54 |
1.1 |
|
| 55 |
1.1 |
|
| 60 |
1.1 |
|
| 65 |
1.1 |