Subversion Repositories SmartDukaan

Rev

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

package com.spice.profitmandi.dao.model;

import java.util.Objects;

public class QtyAmountModel implements java.io.Serializable {
    private static final long serialVersionUID = 1L;
    private int qty;
    private long amount;
    private int activationQty;
    private long activationAmount;
    private double finalPayout;

    public QtyAmountModel(int qty, long amount) {
        super();
        this.qty = qty;
        this.amount = amount;
    }
    public int getQty() {
        return qty;
    }
    public void setQty(int qty) {
        this.qty = qty;
    }

    public long getAmount() {
        return amount;
    }
    public void setAmount(long amount) {
        this.amount = amount;
    }

    public int getActivationQty() {
        return activationQty;
    }

    public void setActivationQty(int activationQty) {
        this.activationQty = activationQty;
    }

    public long getActivationAmount() {
        return activationAmount;
    }

    public void setActivationAmount(long activationAmount) {
        this.activationAmount = activationAmount;
    }

    @Override
    public String toString() {
        return "QtyAmountModel{" +
                "qty=" + qty +
                ", amount=" + amount +
                ", activationQty=" + activationQty +
                ", activationAmount=" + activationAmount +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (o == null || getClass() != o.getClass()) return false;
        QtyAmountModel that = (QtyAmountModel) o;
        return qty == that.qty && amount == that.amount && activationQty == that.activationQty && activationAmount == that.activationAmount;
    }

    @Override
    public int hashCode() {
        return Objects.hash(qty, amount, activationQty, activationAmount);
    }

    public double getFinalPayout() {
        return finalPayout;
    }

    public void setFinalPayout(double finalPayout) {
        this.finalPayout = finalPayout;
    }
}