| 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.LocalTime; | |
| 11 | ||
| 12 | public class LargestTrade implements Serializable { | |
| 13 | ||
| 14 | private static final long serialVersionUID = -1666393957594835977L; | |
| 15 | ||
| 16 | private final BigDecimal price; | |
| 17 | private final BigDecimal size; | |
| 18 | private final Long time; | |
| 19 | private final LocalTime timeLabel; | |
| 20 | private final String venue; | |
| 21 | private final String venueName; | |
| 22 | ||
| 23 | @JsonCreator | |
| 24 | public LargestTrade( | |
| 25 | @JsonProperty("price") final BigDecimal price, | |
| 26 | @JsonProperty("size") final BigDecimal size, | |
| 27 | @JsonProperty("time") final Long time, | |
| 28 | @JsonProperty("timeLabel") final LocalTime timeLabel, | |
| 29 | @JsonProperty("venue") final String venue, | |
| 30 | @JsonProperty("venueName") final String venueName) { | |
| 31 | this.price = price; | |
| 32 | this.size = size; | |
| 33 | this.time = time; | |
| 34 | this.timeLabel = timeLabel; | |
| 35 | this.venue = venue; | |
| 36 | this.venueName = venueName; | |
| 37 | } | |
| 38 | ||
| 39 | public BigDecimal getPrice() { | |
| 40 |
1
1. getPrice : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/LargestTrade::getPrice → KILLED |
return price; |
| 41 | } | |
| 42 | ||
| 43 | public BigDecimal getSize() { | |
| 44 |
1
1. getSize : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/LargestTrade::getSize → KILLED |
return size; |
| 45 | } | |
| 46 | ||
| 47 | public Long getTime() { | |
| 48 |
1
1. getTime : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/stocks/LargestTrade::getTime → KILLED |
return time; |
| 49 | } | |
| 50 | ||
| 51 | public LocalTime getTimeLabel() { | |
| 52 |
1
1. getTimeLabel : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/LargestTrade::getTimeLabel → KILLED |
return timeLabel; |
| 53 | } | |
| 54 | ||
| 55 | public String getVenue() { | |
| 56 |
1
1. getVenue : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/LargestTrade::getVenue → KILLED |
return venue; |
| 57 | } | |
| 58 | ||
| 59 | public String getVenueName() { | |
| 60 |
1
1. getVenueName : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/LargestTrade::getVenueName → KILLED |
return venueName; |
| 61 | } | |
| 62 | ||
| 63 | @Override | |
| 64 | public boolean equals(final Object o) { | |
| 65 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/LargestTrade::equals → KILLED |
if (this == o) return true; |
| 66 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/LargestTrade::equals → KILLED |
if (o == null || getClass() != o.getClass()) return false; |
| 67 | final LargestTrade that = (LargestTrade) o; | |
| 68 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/LargestTrade::equals → KILLED |
return Objects.equal(price, that.price) && |
| 69 |
1
1. equals : negated conditional → KILLED |
Objects.equal(size, that.size) && |
| 70 |
1
1. equals : negated conditional → KILLED |
Objects.equal(time, that.time) && |
| 71 |
1
1. equals : negated conditional → KILLED |
Objects.equal(timeLabel, that.timeLabel) && |
| 72 |
1
1. equals : negated conditional → KILLED |
Objects.equal(venue, that.venue) && |
| 73 |
1
1. equals : negated conditional → KILLED |
Objects.equal(venueName, that.venueName); |
| 74 | } | |
| 75 | ||
| 76 | @Override | |
| 77 | public int hashCode() { | |
| 78 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/LargestTrade::hashCode → KILLED |
return Objects.hashCode(price, size, time, timeLabel, venue, venueName); |
| 79 | } | |
| 80 | ||
| 81 | @Override | |
| 82 | public String toString() { | |
| 83 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/LargestTrade::toString → KILLED |
return MoreObjects.toStringHelper(this) |
| 84 | .add("price", price) | |
| 85 | .add("size", size) | |
| 86 | .add("time", time) | |
| 87 | .add("timeLabel", timeLabel) | |
| 88 | .add("venue", venue) | |
| 89 | .add("venueName", venueName) | |
| 90 | .toString(); | |
| 91 | } | |
| 92 | } | |
Mutations | ||
| 40 |
1.1 |
|
| 44 |
1.1 |
|
| 48 |
1.1 |
|
| 52 |
1.1 |
|
| 56 |
1.1 |
|
| 60 |
1.1 |
|
| 65 |
1.1 2.2 |
|
| 66 |
1.1 2.2 3.3 |
|
| 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 |