|
| 1 | +package com.acanx.meta.model.rss; |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | +import java.math.BigDecimal; |
| 6 | +import java.util.Objects; |
| 7 | + |
| 8 | +/** |
| 9 | + * 分钟级别行情数据模型 |
| 10 | + * |
| 11 | + */ |
| 12 | +public class SecurityMinute { |
| 13 | + |
| 14 | + private Long ts; |
| 15 | + |
| 16 | + private Integer tradeDate; |
| 17 | + |
| 18 | + private Integer tradeTime; |
| 19 | + |
| 20 | + private String marketCode; |
| 21 | + |
| 22 | + private String securityCode; |
| 23 | + |
| 24 | + private BigDecimal priceOpen; |
| 25 | + |
| 26 | + private BigDecimal priceClose; |
| 27 | + |
| 28 | + private BigDecimal priceHigh; |
| 29 | + |
| 30 | + private BigDecimal priceLow; |
| 31 | + |
| 32 | + private BigDecimal priceAvgCurrDay; |
| 33 | + |
| 34 | + private BigDecimal volume; |
| 35 | + |
| 36 | + private BigDecimal turnover; |
| 37 | + |
| 38 | + private String extField; |
| 39 | + |
| 40 | + |
| 41 | + public SecurityMinute() { |
| 42 | + } |
| 43 | + |
| 44 | + |
| 45 | + public Long getTs() { |
| 46 | + return ts; |
| 47 | + } |
| 48 | + |
| 49 | + public void setTs(Long ts) { |
| 50 | + this.ts = ts; |
| 51 | + } |
| 52 | + |
| 53 | + public Integer getTradeDate() { |
| 54 | + return tradeDate; |
| 55 | + } |
| 56 | + |
| 57 | + public void setTradeDate(Integer tradeDate) { |
| 58 | + this.tradeDate = tradeDate; |
| 59 | + } |
| 60 | + |
| 61 | + public Integer getTradeTime() { |
| 62 | + return tradeTime; |
| 63 | + } |
| 64 | + |
| 65 | + public void setTradeTime(Integer tradeTime) { |
| 66 | + this.tradeTime = tradeTime; |
| 67 | + } |
| 68 | + |
| 69 | + public String getMarketCode() { |
| 70 | + return marketCode; |
| 71 | + } |
| 72 | + |
| 73 | + public void setMarketCode(String marketCode) { |
| 74 | + this.marketCode = marketCode; |
| 75 | + } |
| 76 | + |
| 77 | + public String getSecurityCode() { |
| 78 | + return securityCode; |
| 79 | + } |
| 80 | + |
| 81 | + public void setSecurityCode(String securityCode) { |
| 82 | + this.securityCode = securityCode; |
| 83 | + } |
| 84 | + |
| 85 | + public BigDecimal getPriceOpen() { |
| 86 | + return priceOpen; |
| 87 | + } |
| 88 | + |
| 89 | + public void setPriceOpen(BigDecimal priceOpen) { |
| 90 | + this.priceOpen = priceOpen; |
| 91 | + } |
| 92 | + |
| 93 | + public BigDecimal getPriceClose() { |
| 94 | + return priceClose; |
| 95 | + } |
| 96 | + |
| 97 | + public void setPriceClose(BigDecimal priceClose) { |
| 98 | + this.priceClose = priceClose; |
| 99 | + } |
| 100 | + |
| 101 | + public BigDecimal getPriceHigh() { |
| 102 | + return priceHigh; |
| 103 | + } |
| 104 | + |
| 105 | + public void setPriceHigh(BigDecimal priceHigh) { |
| 106 | + this.priceHigh = priceHigh; |
| 107 | + } |
| 108 | + |
| 109 | + public BigDecimal getPriceLow() { |
| 110 | + return priceLow; |
| 111 | + } |
| 112 | + |
| 113 | + public void setPriceLow(BigDecimal priceLow) { |
| 114 | + this.priceLow = priceLow; |
| 115 | + } |
| 116 | + |
| 117 | + public BigDecimal getPriceAvgCurrDay() { |
| 118 | + return priceAvgCurrDay; |
| 119 | + } |
| 120 | + |
| 121 | + public void setPriceAvgCurrDay(BigDecimal priceAvgCurrDay) { |
| 122 | + this.priceAvgCurrDay = priceAvgCurrDay; |
| 123 | + } |
| 124 | + |
| 125 | + public BigDecimal getVolume() { |
| 126 | + return volume; |
| 127 | + } |
| 128 | + |
| 129 | + public void setVolume(BigDecimal volume) { |
| 130 | + this.volume = volume; |
| 131 | + } |
| 132 | + |
| 133 | + public BigDecimal getTurnover() { |
| 134 | + return turnover; |
| 135 | + } |
| 136 | + |
| 137 | + public void setTurnover(BigDecimal turnover) { |
| 138 | + this.turnover = turnover; |
| 139 | + } |
| 140 | + |
| 141 | + public String getExtField() { |
| 142 | + return extField; |
| 143 | + } |
| 144 | + |
| 145 | + public void setExtField(String extField) { |
| 146 | + this.extField = extField; |
| 147 | + } |
| 148 | + |
| 149 | + @Override |
| 150 | + public boolean equals(Object object) { |
| 151 | + if (this == object) return true; |
| 152 | + if (object == null || getClass() != object.getClass()) return false; |
| 153 | + |
| 154 | + SecurityMinute that = (SecurityMinute) object; |
| 155 | + return Objects.equals(getTs(), that.getTs()) && Objects.equals(getTradeDate(), that.getTradeDate()) && Objects.equals(getTradeTime(), that.getTradeTime()) && Objects.equals(getMarketCode(), that.getMarketCode()) && Objects.equals(getSecurityCode(), that.getSecurityCode()) && Objects.equals(getPriceOpen(), that.getPriceOpen()) && Objects.equals(getPriceClose(), that.getPriceClose()) && Objects.equals(getPriceHigh(), that.getPriceHigh()) && Objects.equals(getPriceLow(), that.getPriceLow()) && Objects.equals(getPriceAvgCurrDay(), that.getPriceAvgCurrDay()) && Objects.equals(getVolume(), that.getVolume()) && Objects.equals(getTurnover(), that.getTurnover()) && Objects.equals(getExtField(), that.getExtField()); |
| 156 | + } |
| 157 | + |
| 158 | + @Override |
| 159 | + public int hashCode() { |
| 160 | + int result = Objects.hashCode(getTs()); |
| 161 | + result = 31 * result + Objects.hashCode(getTradeDate()); |
| 162 | + result = 31 * result + Objects.hashCode(getTradeTime()); |
| 163 | + result = 31 * result + Objects.hashCode(getMarketCode()); |
| 164 | + result = 31 * result + Objects.hashCode(getSecurityCode()); |
| 165 | + result = 31 * result + Objects.hashCode(getPriceOpen()); |
| 166 | + result = 31 * result + Objects.hashCode(getPriceClose()); |
| 167 | + result = 31 * result + Objects.hashCode(getPriceHigh()); |
| 168 | + result = 31 * result + Objects.hashCode(getPriceLow()); |
| 169 | + result = 31 * result + Objects.hashCode(getPriceAvgCurrDay()); |
| 170 | + result = 31 * result + Objects.hashCode(getVolume()); |
| 171 | + result = 31 * result + Objects.hashCode(getTurnover()); |
| 172 | + result = 31 * result + Objects.hashCode(getExtField()); |
| 173 | + return result; |
| 174 | + } |
| 175 | + |
| 176 | + @Override |
| 177 | + public String toString() { |
| 178 | + return "SecurityMinute{" + |
| 179 | + "ts=" + ts + |
| 180 | + ", tradeDate=" + tradeDate + |
| 181 | + ", tradeTime=" + tradeTime + |
| 182 | + ", marketCode='" + marketCode + '\'' + |
| 183 | + ", securityCode='" + securityCode + '\'' + |
| 184 | + ", priceOpen=" + priceOpen + |
| 185 | + ", priceClose=" + priceClose + |
| 186 | + ", priceHigh=" + priceHigh + |
| 187 | + ", priceLow=" + priceLow + |
| 188 | + ", priceAvgCurrDay=" + priceAvgCurrDay + |
| 189 | + ", volume=" + volume + |
| 190 | + ", turnover=" + turnover + |
| 191 | + ", extField='" + extField + '\'' + |
| 192 | + '}'; |
| 193 | + } |
| 194 | +} |
0 commit comments