zj
2024-06-03 287ac389edd047696d956afafdb855a93830bc0c
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
package com.nq.vo.futuresposition;
 
 
import java.math.BigDecimal;
 
 
public class FuturesPositionProfitVO {
 
    private String nowPrice;
 
    private BigDecimal profitAndLose;
 
    private BigDecimal allProfitAndLose;
 
    private BigDecimal coinRate;
 
 
    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 void setCoinRate(BigDecimal coinRate) {
        this.coinRate = coinRate;
    }
 
    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof FuturesPositionProfitVO)) return false;
        FuturesPositionProfitVO other = (FuturesPositionProfitVO) 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();
        if ((this$allProfitAndLose == null) ? (other$allProfitAndLose != null) : !this$allProfitAndLose.equals(other$allProfitAndLose))
            return false;
        Object this$coinRate = getCoinRate(), other$coinRate = other.getCoinRate();
        return !((this$coinRate == null) ? (other$coinRate != null) : !this$coinRate.equals(other$coinRate));
    }
 
    protected boolean canEqual(Object other) {
        return other instanceof FuturesPositionProfitVO;
    }
 
    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();
        result = result * 59 + (($allProfitAndLose == null) ? 43 : $allProfitAndLose.hashCode());
        Object $coinRate = getCoinRate();
        return result * 59 + (($coinRate == null) ? 43 : $coinRate.hashCode());
    }
 
    public String toString() {
        return "FuturesPositionProfitVO(nowPrice=" + getNowPrice() + ", profitAndLose=" + getProfitAndLose() + ", allProfitAndLose=" + getAllProfitAndLose() + ", coinRate=" + getCoinRate() + ")";
    }
 
 
    public String getNowPrice() {
        return this.nowPrice;
    }
 
 
    public BigDecimal getProfitAndLose() {
        return this.profitAndLose;
    }
 
 
    public BigDecimal getAllProfitAndLose() {
        return this.allProfitAndLose;
    }
 
 
    public BigDecimal getCoinRate() {
        return this.coinRate;
    }
 
}