Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | 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
 
5
public class QtyAmountModel {
6
    private int qty;
7
    private long amount;
8
    private int activationQty;
9
    private long activationAmount;
10
    private double finalPayout;
11
 
12
    public QtyAmountModel(int qty, long amount) {
13
        super();
14
        this.qty = qty;
15
        this.amount = amount;
16
    }
17
    public int getQty() {
18
        return qty;
19
    }
20
    public void setQty(int qty) {
21
        this.qty = qty;
22
    }
23
 
24
    public long getAmount() {
25
        return amount;
26
    }
27
    public void setAmount(long amount) {
28
        this.amount = amount;
29
    }
30
 
31
    public int getActivationQty() {
32
        return activationQty;
33
    }
34
 
35
    public void setActivationQty(int activationQty) {
36
        this.activationQty = activationQty;
37
    }
38
 
39
    public long getActivationAmount() {
40
        return activationAmount;
41
    }
42
 
43
    public void setActivationAmount(long activationAmount) {
44
        this.activationAmount = activationAmount;
45
    }
46
 
47
    @Override
48
    public String toString() {
49
        return "QtyAmountModel{" +
50
                "qty=" + qty +
51
                ", amount=" + amount +
52
                ", activationQty=" + activationQty +
53
                ", activationAmount=" + activationAmount +
54
                '}';
55
    }
56
 
57
    @Override
58
    public boolean equals(Object o) {
59
        if (o == null || getClass() != o.getClass()) return false;
60
        QtyAmountModel that = (QtyAmountModel) o;
61
        return qty == that.qty && amount == that.amount && activationQty == that.activationQty && activationAmount == that.activationAmount;
62
    }
63
 
64
    @Override
65
    public int hashCode() {
66
        return Objects.hash(qty, amount, activationQty, activationAmount);
67
    }
68
 
69
    public double getFinalPayout() {
70
        return finalPayout;
71
    }
72
 
73
    public void setFinalPayout(double finalPayout) {
74
        this.finalPayout = finalPayout;
75
    }
76
}