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.Objects; | |
6 | ||
7 | import java.io.Serializable; | |
8 | ||
9 | public class IpoSummary implements Serializable { | |
10 | ||
11 | private static final long serialVersionUID = 3308193363167786847L; | |
12 | ||
13 | private final String company; | |
14 | private final String symbol; | |
15 | private final String price; | |
16 | private final String shares; | |
17 | private final String amount; | |
18 | private final String floatValue; | |
19 | private final String percent; | |
20 | private final String market; | |
21 | private final String expected; | |
22 | private final Quote quote; | |
23 | ||
24 | @JsonCreator | |
25 | public IpoSummary( | |
26 | @JsonProperty("Company") final String company, | |
27 | @JsonProperty("Symbol") final String symbol, | |
28 | @JsonProperty("Price") final String price, | |
29 | @JsonProperty("Shares") final String shares, | |
30 | @JsonProperty("Amount") final String amount, | |
31 | @JsonProperty("Float") final String floatValue, | |
32 | @JsonProperty("Percent") final String percent, | |
33 | @JsonProperty("Market") final String market, | |
34 | @JsonProperty("Expected") final String expected, | |
35 | @JsonProperty("quote") final Quote quote) { | |
36 | this.company = company; | |
37 | this.symbol = symbol; | |
38 | this.price = price; | |
39 | this.shares = shares; | |
40 | this.amount = amount; | |
41 | this.floatValue = floatValue; | |
42 | this.percent = percent; | |
43 | this.market = market; | |
44 | this.expected = expected; | |
45 | this.quote = quote; | |
46 | } | |
47 | ||
48 | public String getCompany() { | |
49 |
1
1. getCompany : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/IpoSummary::getCompany → KILLED |
return company; |
50 | } | |
51 | ||
52 | public String getSymbol() { | |
53 |
1
1. getSymbol : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/IpoSummary::getSymbol → KILLED |
return symbol; |
54 | } | |
55 | ||
56 | public String getPrice() { | |
57 |
1
1. getPrice : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/IpoSummary::getPrice → KILLED |
return price; |
58 | } | |
59 | ||
60 | public String getShares() { | |
61 |
1
1. getShares : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/IpoSummary::getShares → KILLED |
return shares; |
62 | } | |
63 | ||
64 | public String getAmount() { | |
65 |
1
1. getAmount : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/IpoSummary::getAmount → KILLED |
return amount; |
66 | } | |
67 | ||
68 | @JsonProperty("Float") | |
69 | public String getFloat() { | |
70 |
1
1. getFloat : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/IpoSummary::getFloat → KILLED |
return floatValue; |
71 | } | |
72 | ||
73 | public String getPercent() { | |
74 |
1
1. getPercent : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/IpoSummary::getPercent → KILLED |
return percent; |
75 | } | |
76 | ||
77 | public String getMarket() { | |
78 |
1
1. getMarket : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/IpoSummary::getMarket → KILLED |
return market; |
79 | } | |
80 | ||
81 | public String getExpected() { | |
82 |
1
1. getExpected : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/IpoSummary::getExpected → KILLED |
return expected; |
83 | } | |
84 | ||
85 | public Quote getQuote() { | |
86 |
1
1. getQuote : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/IpoSummary::getQuote → KILLED |
return quote; |
87 | } | |
88 | ||
89 | @Override | |
90 | public boolean equals(final Object o) { | |
91 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/IpoSummary::equals → KILLED |
if (this == o) return true; |
92 |
3
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED 3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/IpoSummary::equals → KILLED |
if (o == null || getClass() != o.getClass()) return false; |
93 | final IpoSummary that = (IpoSummary) o; | |
94 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/IpoSummary::equals → KILLED |
return Objects.equal(company, that.company) && |
95 |
1
1. equals : negated conditional → KILLED |
Objects.equal(symbol, that.symbol) && |
96 |
1
1. equals : negated conditional → KILLED |
Objects.equal(price, that.price) && |
97 |
1
1. equals : negated conditional → KILLED |
Objects.equal(shares, that.shares) && |
98 |
1
1. equals : negated conditional → KILLED |
Objects.equal(amount, that.amount) && |
99 |
1
1. equals : negated conditional → KILLED |
Objects.equal(floatValue, that.floatValue) && |
100 |
1
1. equals : negated conditional → KILLED |
Objects.equal(percent, that.percent) && |
101 |
1
1. equals : negated conditional → KILLED |
Objects.equal(market, that.market) && |
102 |
1
1. equals : negated conditional → KILLED |
Objects.equal(expected, that.expected) && |
103 |
1
1. equals : negated conditional → KILLED |
Objects.equal(quote, that.quote); |
104 | } | |
105 | ||
106 | @Override | |
107 | public int hashCode() { | |
108 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/IpoSummary::hashCode → KILLED |
return Objects.hashCode(company, symbol, price, shares, amount, floatValue, percent, |
109 | market, expected, quote); | |
110 | } | |
111 | ||
112 | @Override | |
113 | public String toString() { | |
114 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/IpoSummary::toString → KILLED |
return "IpoSummary{" + |
115 | "company='" + company + '\'' + | |
116 | ", symbol='" + symbol + '\'' + | |
117 | ", price='" + price + '\'' + | |
118 | ", shares='" + shares + '\'' + | |
119 | ", amount='" + amount + '\'' + | |
120 | ", floatValue='" + floatValue + '\'' + | |
121 | ", percent='" + percent + '\'' + | |
122 | ", market='" + market + '\'' + | |
123 | ", expected='" + expected + '\'' + | |
124 | ", quote='" + quote + '\'' + | |
125 | '}'; | |
126 | } | |
127 | ||
128 | } | |
Mutations | ||
49 |
1.1 |
|
53 |
1.1 |
|
57 |
1.1 |
|
61 |
1.1 |
|
65 |
1.1 |
|
70 |
1.1 |
|
74 |
1.1 |
|
78 |
1.1 |
|
82 |
1.1 |
|
86 |
1.1 |
|
91 |
1.1 2.2 |
|
92 |
1.1 2.2 3.3 |
|
94 |
1.1 2.2 |
|
95 |
1.1 |
|
96 |
1.1 |
|
97 |
1.1 |
|
98 |
1.1 |
|
99 |
1.1 |
|
100 |
1.1 |
|
101 |
1.1 |
|
102 |
1.1 |
|
103 |
1.1 |
|
108 |
1.1 |
|
114 |
1.1 |