1 | package pl.zankowski.iextrading4j.api.datapoint; | |
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 FieldMetadata implements Serializable { | |
11 | ||
12 | private static final long serialVersionUID = -4105749852777766636L; | |
13 | ||
14 | private final String type; | |
15 | ||
16 | @JsonCreator | |
17 | public FieldMetadata( | |
18 | @JsonProperty("type") final String type) { | |
19 | this.type = type; | |
20 | } | |
21 | ||
22 | public String getType() { | |
23 |
1
1. getType : replaced return value with "" for pl/zankowski/iextrading4j/api/datapoint/FieldMetadata::getType → KILLED |
return type; |
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/datapoint/FieldMetadata::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/datapoint/FieldMetadata::equals → KILLED |
return false; |
33 | } | |
34 | final FieldMetadata that = (FieldMetadata) o; | |
35 |
2
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/datapoint/FieldMetadata::equals → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/datapoint/FieldMetadata::equals → KILLED |
return Objects.equal(type, that.type); |
36 | } | |
37 | ||
38 | @Override | |
39 | public int hashCode() { | |
40 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/datapoint/FieldMetadata::hashCode → KILLED |
return Objects.hashCode(type); |
41 | } | |
42 | ||
43 | @Override | |
44 | public String toString() { | |
45 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/datapoint/FieldMetadata::toString → KILLED |
return MoreObjects.toStringHelper(this) |
46 | .add("type", type) | |
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 |