| 1 | package pl.zankowski.iextrading4j.api.refdata.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 | ||
| 10 | public class Sector implements Serializable { | |
| 11 | ||
| 12 | private static final long serialVersionUID = 7049660583134819876L; | |
| 13 | ||
| 14 | private final String name; | |
| 15 | ||
| 16 | @JsonCreator | |
| 17 | public Sector( | |
| 18 | @JsonProperty("name") final String name) { | |
| 19 | this.name = name; | |
| 20 | } | |
| 21 | ||
| 22 | public String getName() { | |
| 23 |
1
1. getName : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Sector::getName → KILLED |
return name; |
| 24 | } | |
| 25 | ||
| 26 | @Override | |
| 27 | public boolean equals(final Object o) { | |
| 28 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
| 29 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/refdata/v1/Sector::equals → KILLED |
return true; |
| 30 | } | |
| 31 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
| 32 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/Sector::equals → KILLED |
return false; |
| 33 | } | |
| 34 | final Sector sector = (Sector) o; | |
| 35 |
2
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/refdata/v1/Sector::equals → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/Sector::equals → KILLED |
return Objects.equal(name, sector.name); |
| 36 | } | |
| 37 | ||
| 38 | @Override | |
| 39 | public int hashCode() { | |
| 40 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/refdata/v1/Sector::hashCode → KILLED |
return Objects.hashCode(name); |
| 41 | } | |
| 42 | ||
| 43 | @Override | |
| 44 | public String toString() { | |
| 45 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Sector::toString → KILLED |
return MoreObjects.toStringHelper(this) |
| 46 | .add("name", name) | |
| 47 | .toString(); | |
| 48 | } | |
| 49 | ||
| 50 | } | |
Mutations | ||
| 23 |
1.1 |
|
| 28 |
1.1 |
|
| 29 |
1.1 |
|
| 31 |
1.1 2.2 |
|
| 32 |
1.1 |
|
| 35 |
1.1 2.2 |
|
| 40 |
1.1 |
|
| 45 |
1.1 |