| 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.MoreObjects; | |
| 6 | import com.google.common.base.Objects; | |
| 7 | ||
| 8 | import java.io.Serializable; | |
| 9 | import java.math.BigDecimal; | |
| 10 | import java.util.List; | |
| 11 | ||
| 12 | import static pl.zankowski.iextrading4j.api.util.ListUtil.immutableList; | |
| 13 | ||
| 14 | public class Company implements Serializable { | |
| 15 | ||
| 16 | private static final long serialVersionUID = 1665863689707337670L; | |
| 17 | ||
| 18 | private final String symbol; | |
| 19 | private final String companyName; | |
| 20 | private final String exchange; | |
| 21 | private final String industry; | |
| 22 | private final String website; | |
| 23 | private final String description; | |
| 24 | private final String CEO; | |
| 25 | private final String securityName; | |
| 26 | private final String issueType; | |
| 27 | private final String sector; | |
| 28 | private final BigDecimal employees; | |
| 29 | private final List<String> tags; | |
| 30 | private final String address; | |
| 31 | private final String address2; | |
| 32 | private final String state; | |
| 33 | private final String city; | |
| 34 | private final String zip; | |
| 35 | private final String country; | |
| 36 | private final String phone; | |
| 37 | private final String primarySicCode; | |
| 38 | ||
| 39 | @JsonCreator | |
| 40 | public Company( | |
| 41 | @JsonProperty("symbol") final String symbol, | |
| 42 | @JsonProperty("companyName") final String companyName, | |
| 43 | @JsonProperty("exchange") final String exchange, | |
| 44 | @JsonProperty("industry") final String industry, | |
| 45 | @JsonProperty("website") final String website, | |
| 46 | @JsonProperty("description") final String description, | |
| 47 | @JsonProperty("CEO") final String CEO, | |
| 48 | @JsonProperty("securityName") final String securityName, | |
| 49 | @JsonProperty("issueType") final String issueType, | |
| 50 | @JsonProperty("sector") final String sector, | |
| 51 | @JsonProperty("employees") final BigDecimal employees, | |
| 52 | @JsonProperty("tags") final List<String> tags, | |
| 53 | @JsonProperty("address") final String address, | |
| 54 | @JsonProperty("address2") final String address2, | |
| 55 | @JsonProperty("state") final String state, | |
| 56 | @JsonProperty("city") final String city, | |
| 57 | @JsonProperty("zip") final String zip, | |
| 58 | @JsonProperty("country") final String country, | |
| 59 | @JsonProperty("phone") final String phone, | |
| 60 | @JsonProperty("primarySicCode") final String primarySicCode) { | |
| 61 | this.symbol = symbol; | |
| 62 | this.companyName = companyName; | |
| 63 | this.exchange = exchange; | |
| 64 | this.industry = industry; | |
| 65 | this.website = website; | |
| 66 | this.description = description; | |
| 67 | this.CEO = CEO; | |
| 68 | this.securityName = securityName; | |
| 69 | this.issueType = issueType; | |
| 70 | this.sector = sector; | |
| 71 | this.employees = employees; | |
| 72 | this.tags = immutableList(tags); | |
| 73 | this.address = address; | |
| 74 | this.address2 = address2; | |
| 75 | this.state = state; | |
| 76 | this.city = city; | |
| 77 | this.zip = zip; | |
| 78 | this.country = country; | |
| 79 | this.phone = phone; | |
| 80 | this.primarySicCode = primarySicCode; | |
| 81 | } | |
| 82 | ||
| 83 | public String getSymbol() { | |
| 84 |
1
1. getSymbol : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Company::getSymbol → KILLED |
return symbol; |
| 85 | } | |
| 86 | ||
| 87 | public String getCompanyName() { | |
| 88 |
1
1. getCompanyName : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Company::getCompanyName → KILLED |
return companyName; |
| 89 | } | |
| 90 | ||
| 91 | public String getExchange() { | |
| 92 |
1
1. getExchange : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Company::getExchange → KILLED |
return exchange; |
| 93 | } | |
| 94 | ||
| 95 | public String getIndustry() { | |
| 96 |
1
1. getIndustry : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Company::getIndustry → KILLED |
return industry; |
| 97 | } | |
| 98 | ||
| 99 | public String getWebsite() { | |
| 100 |
1
1. getWebsite : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Company::getWebsite → KILLED |
return website; |
| 101 | } | |
| 102 | ||
| 103 | public String getDescription() { | |
| 104 |
1
1. getDescription : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Company::getDescription → KILLED |
return description; |
| 105 | } | |
| 106 | ||
| 107 | @JsonProperty("CEO") | |
| 108 | public String getCEO() { | |
| 109 |
1
1. getCEO : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Company::getCEO → KILLED |
return CEO; |
| 110 | } | |
| 111 | ||
| 112 | public String getSecurityName() { | |
| 113 |
1
1. getSecurityName : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Company::getSecurityName → KILLED |
return securityName; |
| 114 | } | |
| 115 | ||
| 116 | public String getIssueType() { | |
| 117 |
1
1. getIssueType : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Company::getIssueType → KILLED |
return issueType; |
| 118 | } | |
| 119 | ||
| 120 | public String getSector() { | |
| 121 |
1
1. getSector : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Company::getSector → KILLED |
return sector; |
| 122 | } | |
| 123 | ||
| 124 | public BigDecimal getEmployees() { | |
| 125 |
1
1. getEmployees : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/Company::getEmployees → KILLED |
return employees; |
| 126 | } | |
| 127 | ||
| 128 | public List<String> getTags() { | |
| 129 |
1
1. getTags : replaced return value with Collections.emptyList for pl/zankowski/iextrading4j/api/stocks/Company::getTags → KILLED |
return tags; |
| 130 | } | |
| 131 | ||
| 132 | public String getAddress() { | |
| 133 |
1
1. getAddress : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Company::getAddress → KILLED |
return address; |
| 134 | } | |
| 135 | ||
| 136 | public String getAddress2() { | |
| 137 |
1
1. getAddress2 : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Company::getAddress2 → KILLED |
return address2; |
| 138 | } | |
| 139 | ||
| 140 | public String getState() { | |
| 141 |
1
1. getState : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Company::getState → KILLED |
return state; |
| 142 | } | |
| 143 | ||
| 144 | public String getCity() { | |
| 145 |
1
1. getCity : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Company::getCity → KILLED |
return city; |
| 146 | } | |
| 147 | ||
| 148 | public String getZip() { | |
| 149 |
1
1. getZip : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Company::getZip → KILLED |
return zip; |
| 150 | } | |
| 151 | ||
| 152 | public String getCountry() { | |
| 153 |
1
1. getCountry : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Company::getCountry → KILLED |
return country; |
| 154 | } | |
| 155 | ||
| 156 | public String getPhone() { | |
| 157 |
1
1. getPhone : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Company::getPhone → KILLED |
return phone; |
| 158 | } | |
| 159 | ||
| 160 | public String getPrimarySicCode() { | |
| 161 |
1
1. getPrimarySicCode : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Company::getPrimarySicCode → KILLED |
return primarySicCode; |
| 162 | } | |
| 163 | ||
| 164 | @Override | |
| 165 | public boolean equals(final Object o) { | |
| 166 |
1
1. equals : negated conditional → KILLED |
if (this == o) { |
| 167 |
1
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/Company::equals → KILLED |
return true; |
| 168 | } | |
| 169 |
2
1. equals : negated conditional → KILLED 2. equals : negated conditional → KILLED |
if (o == null || getClass() != o.getClass()) { |
| 170 |
1
1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/Company::equals → KILLED |
return false; |
| 171 | } | |
| 172 | final Company company = (Company) o; | |
| 173 |
2
1. equals : negated conditional → KILLED 2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/Company::equals → KILLED |
return Objects.equal(symbol, company.symbol) && |
| 174 |
1
1. equals : negated conditional → KILLED |
Objects.equal(companyName, company.companyName) && |
| 175 |
1
1. equals : negated conditional → KILLED |
Objects.equal(exchange, company.exchange) && |
| 176 |
1
1. equals : negated conditional → KILLED |
Objects.equal(industry, company.industry) && |
| 177 |
1
1. equals : negated conditional → KILLED |
Objects.equal(website, company.website) && |
| 178 |
1
1. equals : negated conditional → KILLED |
Objects.equal(description, company.description) && |
| 179 |
1
1. equals : negated conditional → KILLED |
Objects.equal(CEO, company.CEO) && |
| 180 |
1
1. equals : negated conditional → KILLED |
Objects.equal(securityName, company.securityName) && |
| 181 |
1
1. equals : negated conditional → KILLED |
Objects.equal(issueType, company.issueType) && |
| 182 |
1
1. equals : negated conditional → KILLED |
Objects.equal(sector, company.sector) && |
| 183 |
1
1. equals : negated conditional → KILLED |
Objects.equal(employees, company.employees) && |
| 184 |
1
1. equals : negated conditional → KILLED |
Objects.equal(tags, company.tags) && |
| 185 |
1
1. equals : negated conditional → KILLED |
Objects.equal(address, company.address) && |
| 186 |
1
1. equals : negated conditional → KILLED |
Objects.equal(address2, company.address2) && |
| 187 |
1
1. equals : negated conditional → KILLED |
Objects.equal(state, company.state) && |
| 188 |
1
1. equals : negated conditional → KILLED |
Objects.equal(city, company.city) && |
| 189 |
1
1. equals : negated conditional → KILLED |
Objects.equal(zip, company.zip) && |
| 190 |
1
1. equals : negated conditional → KILLED |
Objects.equal(country, company.country) && |
| 191 |
1
1. equals : negated conditional → KILLED |
Objects.equal(phone, company.phone) && |
| 192 |
1
1. equals : negated conditional → KILLED |
Objects.equal(primarySicCode, company.primarySicCode); |
| 193 | } | |
| 194 | ||
| 195 | @Override | |
| 196 | public int hashCode() { | |
| 197 |
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/Company::hashCode → KILLED |
return Objects.hashCode(symbol, companyName, exchange, industry, website, description, CEO, |
| 198 | securityName, issueType, sector, employees, tags, address, address2, state, city, zip, | |
| 199 | country, phone, primarySicCode); | |
| 200 | } | |
| 201 | ||
| 202 | @Override | |
| 203 | public String toString() { | |
| 204 |
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/Company::toString → KILLED |
return MoreObjects.toStringHelper(this) |
| 205 | .add("symbol", symbol) | |
| 206 | .add("companyName", companyName) | |
| 207 | .add("exchange", exchange) | |
| 208 | .add("industry", industry) | |
| 209 | .add("website", website) | |
| 210 | .add("description", description) | |
| 211 | .add("CEO", CEO) | |
| 212 | .add("securityName", securityName) | |
| 213 | .add("issueType", issueType) | |
| 214 | .add("sector", sector) | |
| 215 | .add("employees", employees) | |
| 216 | .add("tags", tags) | |
| 217 | .add("address", address) | |
| 218 | .add("address2", address2) | |
| 219 | .add("state", state) | |
| 220 | .add("city", city) | |
| 221 | .add("zip", zip) | |
| 222 | .add("country", country) | |
| 223 | .add("phone", phone) | |
| 224 | .add("primarySicCode", primarySicCode) | |
| 225 | .toString(); | |
| 226 | } | |
| 227 | ||
| 228 | } | |
Mutations | ||
| 84 |
1.1 |
|
| 88 |
1.1 |
|
| 92 |
1.1 |
|
| 96 |
1.1 |
|
| 100 |
1.1 |
|
| 104 |
1.1 |
|
| 109 |
1.1 |
|
| 113 |
1.1 |
|
| 117 |
1.1 |
|
| 121 |
1.1 |
|
| 125 |
1.1 |
|
| 129 |
1.1 |
|
| 133 |
1.1 |
|
| 137 |
1.1 |
|
| 141 |
1.1 |
|
| 145 |
1.1 |
|
| 149 |
1.1 |
|
| 153 |
1.1 |
|
| 157 |
1.1 |
|
| 161 |
1.1 |
|
| 166 |
1.1 |
|
| 167 |
1.1 |
|
| 169 |
1.1 2.2 |
|
| 170 |
1.1 |
|
| 173 |
1.1 2.2 |
|
| 174 |
1.1 |
|
| 175 |
1.1 |
|
| 176 |
1.1 |
|
| 177 |
1.1 |
|
| 178 |
1.1 |
|
| 179 |
1.1 |
|
| 180 |
1.1 |
|
| 181 |
1.1 |
|
| 182 |
1.1 |
|
| 183 |
1.1 |
|
| 184 |
1.1 |
|
| 185 |
1.1 |
|
| 186 |
1.1 |
|
| 187 |
1.1 |
|
| 188 |
1.1 |
|
| 189 |
1.1 |
|
| 190 |
1.1 |
|
| 191 |
1.1 |
|
| 192 |
1.1 |
|
| 197 |
1.1 |
|
| 204 |
1.1 |