Subversion Repositories SmartDukaan

Rev

Rev 29785 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
27878 amit.gupta 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.util.List;
4
 
5
import com.spice.profitmandi.dao.enumuration.catalog.AmountType;
6
import com.spice.profitmandi.service.offers.ItemCriteria;
7
import com.spice.profitmandi.service.offers.PayoutSlab;
8
 
9
public class ItemCriteriaPayout {
10
	private AmountType amountType;
11
    private ItemCriteria itemCriteria;
12
    private List<PayoutSlab> payoutSlabs;
13
    private String itemCriteriaString;
14
 
15
    public ItemCriteria getItemCriteria() {
16
        return itemCriteria;
17
    }
18
 
19
 
20
 
21
	public AmountType getAmountType() {
22
		return amountType;
23
	}
24
 
25
 
26
 
27
	public void setAmountType(AmountType amountType) {
28
		this.amountType = amountType;
29
	}
30
 
31
 
32
 
33
	public String getItemCriteriaString() {
34
        return itemCriteriaString;
35
    }
36
 
37
    public void setItemCriteriaString(String itemCriteriaString) {
38
        this.itemCriteriaString = itemCriteriaString;
39
    }
40
 
41
    @Override
42
	public int hashCode() {
43
		final int prime = 31;
44
		int result = 1;
45
		result = prime * result + ((amountType == null) ? 0 : amountType.hashCode());
46
		result = prime * result + ((itemCriteria == null) ? 0 : itemCriteria.hashCode());
47
		result = prime * result + ((itemCriteriaString == null) ? 0 : itemCriteriaString.hashCode());
48
		result = prime * result + ((payoutSlabs == null) ? 0 : payoutSlabs.hashCode());
49
		return result;
50
	}
51
 
52
 
53
 
54
	@Override
55
	public boolean equals(Object obj) {
56
		if (this == obj)
57
			return true;
58
		if (obj == null)
59
			return false;
60
		if (getClass() != obj.getClass())
61
			return false;
62
		ItemCriteriaPayout other = (ItemCriteriaPayout) obj;
63
		if (amountType != other.amountType)
64
			return false;
65
		if (itemCriteria == null) {
66
			if (other.itemCriteria != null)
67
				return false;
68
		} else if (!itemCriteria.equals(other.itemCriteria))
69
			return false;
70
		if (itemCriteriaString == null) {
71
			if (other.itemCriteriaString != null)
72
				return false;
73
		} else if (!itemCriteriaString.equals(other.itemCriteriaString))
74
			return false;
75
		if (payoutSlabs == null) {
76
			if (other.payoutSlabs != null)
77
				return false;
78
		} else if (!payoutSlabs.equals(other.payoutSlabs))
79
			return false;
80
		return true;
81
	}
82
 
83
    public void setItemCriteria(ItemCriteria itemCriteria) {
84
        this.itemCriteria = itemCriteria;
85
    }
86
 
87
    public List<PayoutSlab> getPayoutSlabs() {
88
        return payoutSlabs;
89
    }
90
 
91
    public void setPayoutSlabs(List<PayoutSlab> payoutSlabs) {
92
        this.payoutSlabs = payoutSlabs;
93
    }
94
 
95
 
96
 
97
	@Override
98
	public String toString() {
99
		return "ItemCriteriaPayout [amountType=" + amountType + ", itemCriteria=" + itemCriteria + ", payoutSlabs="
100
				+ payoutSlabs + ", itemCriteriaString=" + itemCriteriaString + "]";
101
	}
102
 
103
 
104
 
105
 
106
}