zj
2024-06-03 4afe73cb84c5a609662b8b4ee20693de9b86b9a3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package com.nq.vo.indexposition;
 
import java.math.BigDecimal;
 
 
public class IndexPositionProfitVO {
 
    private String nowPrice;
 
    private BigDecimal profitAndLose;
 
    private BigDecimal allProfitAndLose;
 
 
    public void setNowPrice(String nowPrice) {
        this.nowPrice = nowPrice;
    }
 
    public void setProfitAndLose(BigDecimal profitAndLose) {
        this.profitAndLose = profitAndLose;
    }
 
    public void setAllProfitAndLose(BigDecimal allProfitAndLose) {
        this.allProfitAndLose = allProfitAndLose;
    }
 
    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof IndexPositionProfitVO)) return false;
        IndexPositionProfitVO other = (IndexPositionProfitVO) o;
        if (!other.canEqual(this)) return false;
        Object this$nowPrice = getNowPrice(), other$nowPrice = other.getNowPrice();
        if ((this$nowPrice == null) ? (other$nowPrice != null) : !this$nowPrice.equals(other$nowPrice)) return false;
        Object this$profitAndLose = getProfitAndLose(), other$profitAndLose = other.getProfitAndLose();
        if ((this$profitAndLose == null) ? (other$profitAndLose != null) : !this$profitAndLose.equals(other$profitAndLose))
            return false;
        Object this$allProfitAndLose = getAllProfitAndLose(), other$allProfitAndLose = other.getAllProfitAndLose();
        return !((this$allProfitAndLose == null) ? (other$allProfitAndLose != null) : !this$allProfitAndLose.equals(other$allProfitAndLose));
    }
 
    protected boolean canEqual(Object other) {
        return other instanceof IndexPositionProfitVO;
    }
 
    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $nowPrice = getNowPrice();
        result = result * 59 + (($nowPrice == null) ? 43 : $nowPrice.hashCode());
        Object $profitAndLose = getProfitAndLose();
        result = result * 59 + (($profitAndLose == null) ? 43 : $profitAndLose.hashCode());
        Object $allProfitAndLose = getAllProfitAndLose();
        return result * 59 + (($allProfitAndLose == null) ? 43 : $allProfitAndLose.hashCode());
    }
 
    public String toString() {
        return "IndexPositionProfitVO(nowPrice=" + getNowPrice() + ", profitAndLose=" + getProfitAndLose() + ", allProfitAndLose=" + getAllProfitAndLose() + ")";
    }
 
 
    public String getNowPrice() {
        return this.nowPrice;
    }
 
 
    public BigDecimal getProfitAndLose() {
        return this.profitAndLose;
    }
 
 
    public BigDecimal getAllProfitAndLose() {
        return this.allProfitAndLose;
    }
 
}