1 | package pl.zankowski.iextrading4j.api.stocks.v1; | |
2 | ||
3 | import java.io.Serializable; | |
4 | import java.util.Objects; | |
5 | import java.util.StringJoiner; | |
6 | ||
7 | public abstract class BaseData implements Serializable { | |
8 | ||
9 | private static final long serialVersionUID = 7376752572976245626L; | |
10 | ||
11 | private final String symbol; | |
12 | private final String id; | |
13 | private final String key; | |
14 | private final String subkey; | |
15 | private final Long updated; | |
16 | private final Long date; | |
17 | ||
18 | protected BaseData(final String symbol, final String id, final String key, final String subkey, | |
19 | final Long updated, final Long date) { | |
20 | this.symbol = symbol; | |
21 | this.id = id; | |
22 | this.key = key; | |
23 | this.subkey = subkey; | |
24 | this.updated = updated; | |
25 | this.date = date; | |
26 | } | |
27 | ||
28 | public String getSymbol() { | |
29 |
1
1. getSymbol : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/BaseData::getSymbol → KILLED |
return symbol; |
30 | } | |
31 | ||
32 | public String getId() { | |
33 |
1
1. getId : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/BaseData::getId → KILLED |
return id; |
34 | } | |
35 | ||
36 | public String getKey() { | |
37 |
1
1. getKey : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/BaseData::getKey → KILLED |
return key; |
38 | } | |
39 | ||
40 | public String getSubkey() { | |
41 |
1
1. getSubkey : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/BaseData::getSubkey → KILLED |
return subkey; |
42 | } | |
43 | ||
44 | public Long getUpdated() { | |
45 |
1
1. getUpdated : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/stocks/v1/BaseData::getUpdated → KILLED |
return updated; |
46 | } | |
47 | ||
48 | public Long getDate() { | |
49 |
1
1. getDate : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/stocks/v1/BaseData::getDate → KILLED |
return date; |
50 | } | |
51 | ||
52 | @Override | |
53 | public boolean equals(final Object o) { | |
54 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
55 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/v1/BaseData::equals → NO_COVERAGE |
return true; |
56 | } | |
57 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
58 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/BaseData::equals → KILLED |
return false; |
59 | } | |
60 | final BaseData baseData = (BaseData) o; | |
61 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/BaseData::equals → KILLED |
return Objects.equals(symbol, baseData.symbol) && Objects.equals(id, baseData.id) && |
62 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(key, baseData.key) && Objects.equals(subkey, baseData.subkey) && |
63 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
Objects.equals(updated, baseData.updated) && Objects.equals(date, baseData.date); |
64 | } | |
65 | ||
66 | @Override | |
67 | public int hashCode() { | |
68 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/v1/BaseData::hashCode → KILLED |
return Objects.hash(symbol, id, key, subkey, updated, date); |
69 | } | |
70 | ||
71 | @Override | |
72 | public String toString() { | |
73 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/BaseData::toString → NO_COVERAGE |
return new StringJoiner(", ", BaseData.class.getSimpleName() + "[", "]") |
74 | .add("symbol='" + symbol + "'") | |
75 | .add("id='" + id + "'") | |
76 | .add("key='" + key + "'") | |
77 | .add("subkey='" + subkey + "'") | |
78 | .add("updated=" + updated) | |
79 | .add("date=" + date) | |
80 | .toString(); | |
81 | } | |
82 | } | |
Mutations | ||
29 |
1.1 |
|
33 |
1.1 |
|
37 |
1.1 |
|
41 |
1.1 |
|
45 |
1.1 |
|
49 |
1.1 |
|
54 |
1.1 |
|
55 |
1.1 |
|
57 |
1.1 2.2 |
|
58 |
1.1 |
|
61 |
1.1 2.2 3.3 |
|
62 |
1.1 2.2 |
|
63 |
1.1 2.2 |
|
68 |
1.1 |
|
73 |
1.1 |