Subversion Repositories SmartDukaan

Rev

Rev 35399 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
35399 amit 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.util.Objects;
4
 
36081 amit 5
public class QtyAmountModel implements java.io.Serializable {
6
    private static final long serialVersionUID = 1L;
35399 amit 7
    private int qty;
8
    private long amount;
9
    private int activationQty;
10
    private long activationAmount;
11
    private double finalPayout;
12
 
13
    public QtyAmountModel(int qty, long amount) {
14
        super();
15
        this.qty = qty;
16
        this.amount = amount;
17
    }
18
    public int getQty() {
19
        return qty;
20
    }
21
    public void setQty(int qty) {
22
        this.qty = qty;
23
    }
24
 
25
    public long getAmount() {
26
        return amount;
27
    }
28
    public void setAmount(long amount) {
29
        this.amount = amount;
30
    }
31
 
32
    public int getActivationQty() {
33
        return activationQty;
34
    }
35
 
36
    public void setActivationQty(int activationQty) {
37
        this.activationQty = activationQty;
38
    }
39
 
40
    public long getActivationAmount() {
41
        return activationAmount;
42
    }
43
 
44
    public void setActivationAmount(long activationAmount) {
45
        this.activationAmount = activationAmount;
46
    }
47
 
48
    @Override
49
    public String toString() {
50
        return "QtyAmountModel{" +
51
                "qty=" + qty +
52
                ", amount=" + amount +
53
                ", activationQty=" + activationQty +
54
                ", activationAmount=" + activationAmount +
55
                '}';
56
    }
57
 
58
    @Override
59
    public boolean equals(Object o) {
60
        if (o == null || getClass() != o.getClass()) return false;
61
        QtyAmountModel that = (QtyAmountModel) o;
62
        return qty == that.qty && amount == that.amount && activationQty == that.activationQty && activationAmount == that.activationAmount;
63
    }
64
 
65
    @Override
66
    public int hashCode() {
67
        return Objects.hash(qty, amount, activationQty, activationAmount);
68
    }
69
 
70
    public double getFinalPayout() {
71
        return finalPayout;
72
    }
73
 
74
    public void setFinalPayout(double finalPayout) {
75
        this.finalPayout = finalPayout;
76
    }
77
}