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 | ||
8 | import java.io.Serializable; | |
9 | import java.math.BigDecimal; | |
10 | ||
11 | public class CeoCompensation implements Serializable { | |
12 | ||
13 | private static final long serialVersionUID = -2298704245550275980L; | |
14 | ||
15 | private final String symbol; | |
16 | private final String name; | |
17 | private final String companyName; | |
18 | private final String location; | |
19 | private final BigDecimal salary; | |
20 | private final BigDecimal bonus; | |
21 | private final BigDecimal stockAwards; | |
22 | private final BigDecimal optionAwards; | |
23 | private final BigDecimal nonEquityIncentives; | |
24 | private final BigDecimal pensionAndDeferred; | |
25 | private final BigDecimal otherComp; | |
26 | private final BigDecimal total; | |
27 | private final String year; | |
28 | ||
29 | @JsonCreator | |
30 | public CeoCompensation( | |
31 | @JsonProperty("symbol") final String symbol, | |
32 | @JsonProperty("name") final String name, | |
33 | @JsonProperty("companyName") final String companyName, | |
34 | @JsonProperty("location") final String location, | |
35 | @JsonProperty("salary") final BigDecimal salary, | |
36 | @JsonProperty("bonus") final BigDecimal bonus, | |
37 | @JsonProperty("stockAwards") final BigDecimal stockAwards, | |
38 | @JsonProperty("optionAwards") final BigDecimal optionAwards, | |
39 | @JsonProperty("nonEquityIncentives") final BigDecimal nonEquityIncentives, | |
40 | @JsonProperty("pensionAndDeferred") final BigDecimal pensionAndDeferred, | |
41 | @JsonProperty("otherComp") final BigDecimal otherComp, | |
42 | @JsonProperty("total") final BigDecimal total, | |
43 | @JsonProperty("year") final String year) { | |
44 | this.symbol = symbol; | |
45 | this.name = name; | |
46 | this.companyName = companyName; | |
47 | this.location = location; | |
48 | this.salary = salary; | |
49 | this.bonus = bonus; | |
50 | this.stockAwards = stockAwards; | |
51 | this.optionAwards = optionAwards; | |
52 | this.nonEquityIncentives = nonEquityIncentives; | |
53 | this.pensionAndDeferred = pensionAndDeferred; | |
54 | this.otherComp = otherComp; | |
55 | this.total = total; | |
56 | this.year = year; | |
57 | } | |
58 | ||
59 | public String getSymbol() { | |
60 |
1
1. getSymbol : replaced return value with "" for pl/zankowski/iextrading4j/api/alternative/CeoCompensation::getSymbol → KILLED |
return symbol; |
61 | } | |
62 | ||
63 | public String getName() { | |
64 |
1
1. getName : replaced return value with "" for pl/zankowski/iextrading4j/api/alternative/CeoCompensation::getName → KILLED |
return name; |
65 | } | |
66 | ||
67 | public String getCompanyName() { | |
68 |
1
1. getCompanyName : replaced return value with "" for pl/zankowski/iextrading4j/api/alternative/CeoCompensation::getCompanyName → KILLED |
return companyName; |
69 | } | |
70 | ||
71 | public String getLocation() { | |
72 |
1
1. getLocation : replaced return value with "" for pl/zankowski/iextrading4j/api/alternative/CeoCompensation::getLocation → KILLED |
return location; |
73 | } | |
74 | ||
75 | public BigDecimal getSalary() { | |
76 |
1
1. getSalary : replaced return value with null for pl/zankowski/iextrading4j/api/alternative/CeoCompensation::getSalary → KILLED |
return salary; |
77 | } | |
78 | ||
79 | public BigDecimal getBonus() { | |
80 |
1
1. getBonus : replaced return value with null for pl/zankowski/iextrading4j/api/alternative/CeoCompensation::getBonus → KILLED |
return bonus; |
81 | } | |
82 | ||
83 | public BigDecimal getStockAwards() { | |
84 |
1
1. getStockAwards : replaced return value with null for pl/zankowski/iextrading4j/api/alternative/CeoCompensation::getStockAwards → KILLED |
return stockAwards; |
85 | } | |
86 | ||
87 | public BigDecimal getOptionAwards() { | |
88 |
1
1. getOptionAwards : replaced return value with null for pl/zankowski/iextrading4j/api/alternative/CeoCompensation::getOptionAwards → KILLED |
return optionAwards; |
89 | } | |
90 | ||
91 | public BigDecimal getNonEquityIncentives() { | |
92 |
1
1. getNonEquityIncentives : replaced return value with null for pl/zankowski/iextrading4j/api/alternative/CeoCompensation::getNonEquityIncentives → KILLED |
return nonEquityIncentives; |
93 | } | |
94 | ||
95 | public BigDecimal getPensionAndDeferred() { | |
96 |
1
1. getPensionAndDeferred : replaced return value with null for pl/zankowski/iextrading4j/api/alternative/CeoCompensation::getPensionAndDeferred → KILLED |
return pensionAndDeferred; |
97 | } | |
98 | ||
99 | public BigDecimal getOtherComp() { | |
100 |
1
1. getOtherComp : replaced return value with null for pl/zankowski/iextrading4j/api/alternative/CeoCompensation::getOtherComp → KILLED |
return otherComp; |
101 | } | |
102 | ||
103 | public BigDecimal getTotal() { | |
104 |
1
1. getTotal : replaced return value with null for pl/zankowski/iextrading4j/api/alternative/CeoCompensation::getTotal → KILLED |
return total; |
105 | } | |
106 | ||
107 | public String getYear() { | |
108 |
1
1. getYear : replaced return value with "" for pl/zankowski/iextrading4j/api/alternative/CeoCompensation::getYear → KILLED |
return year; |
109 | } | |
110 | ||
111 | @Override | |
112 | public boolean equals(final Object o) { | |
113 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/alternative/CeoCompensation::equals → KILLED |
if (this == o) return true; |
114 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/alternative/CeoCompensation::equals → KILLED |
if (o == null || getClass() != o.getClass()) return false; |
115 | final CeoCompensation that = (CeoCompensation) o; | |
116 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/alternative/CeoCompensation::equals → KILLED |
return Objects.equal(symbol, that.symbol) && |
117 |
1
1. equals : negated conditional → KILLED |
Objects.equal(name, that.name) && |
118 |
1
1. equals : negated conditional → KILLED |
Objects.equal(companyName, that.companyName) && |
119 |
1
1. equals : negated conditional → KILLED |
Objects.equal(location, that.location) && |
120 |
1
1. equals : negated conditional → KILLED |
Objects.equal(salary, that.salary) && |
121 |
1
1. equals : negated conditional → KILLED |
Objects.equal(bonus, that.bonus) && |
122 |
1
1. equals : negated conditional → KILLED |
Objects.equal(stockAwards, that.stockAwards) && |
123 |
1
1. equals : negated conditional → KILLED |
Objects.equal(optionAwards, that.optionAwards) && |
124 |
1
1. equals : negated conditional → KILLED |
Objects.equal(nonEquityIncentives, that.nonEquityIncentives) && |
125 |
1
1. equals : negated conditional → KILLED |
Objects.equal(pensionAndDeferred, that.pensionAndDeferred) && |
126 |
1
1. equals : negated conditional → KILLED |
Objects.equal(otherComp, that.otherComp) && |
127 |
1
1. equals : negated conditional → KILLED |
Objects.equal(total, that.total) && |
128 |
1
1. equals : negated conditional → KILLED |
Objects.equal(year, that.year); |
129 | } | |
130 | ||
131 | @Override | |
132 | public int hashCode() { | |
133 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/alternative/CeoCompensation::hashCode → KILLED |
return Objects.hashCode(symbol, name, companyName, location, salary, bonus, |
134 | stockAwards, optionAwards, nonEquityIncentives, pensionAndDeferred, | |
135 | otherComp, total, year); | |
136 | } | |
137 | ||
138 | @Override | |
139 | public String toString() { | |
140 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/alternative/CeoCompensation::toString → KILLED |
return MoreObjects.toStringHelper(this) |
141 | .add("symbol", symbol) | |
142 | .add("name", name) | |
143 | .add("companyName", companyName) | |
144 | .add("location", location) | |
145 | .add("salary", salary) | |
146 | .add("bonus", bonus) | |
147 | .add("stockAwards", stockAwards) | |
148 | .add("optionAwards", optionAwards) | |
149 | .add("nonEquityIncentives", nonEquityIncentives) | |
150 | .add("pensionAndDeferred", pensionAndDeferred) | |
151 | .add("otherComp", otherComp) | |
152 | .add("total", total) | |
153 | .add("year", year) | |
154 | .toString(); | |
155 | } | |
156 | ||
157 | } | |
Mutations | ||
60 |
1.1 |
|
64 |
1.1 |
|
68 |
1.1 |
|
72 |
1.1 |
|
76 |
1.1 |
|
80 |
1.1 |
|
84 |
1.1 |
|
88 |
1.1 |
|
92 |
1.1 |
|
96 |
1.1 |
|
100 |
1.1 |
|
104 |
1.1 |
|
108 |
1.1 |
|
113 |
1.1 2.2 |
|
114 |
1.1 2.2 3.3 |
|
116 |
1.1 2.2 |
|
117 |
1.1 |
|
118 |
1.1 |
|
119 |
1.1 |
|
120 |
1.1 |
|
121 |
1.1 |
|
122 |
1.1 |
|
123 |
1.1 |
|
124 |
1.1 |
|
125 |
1.1 |
|
126 |
1.1 |
|
127 |
1.1 |
|
128 |
1.1 |
|
133 |
1.1 |
|
140 |
1.1 |