Subversion Repositories SmartDukaan

Rev

Rev 27878 | Rev 30651 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27878 Rev 29785
Line 9... Line 9...
9
public class ItemCriteriaPayout {
9
public class ItemCriteriaPayout {
10
	private AmountType amountType;
10
	private AmountType amountType;
11
    private ItemCriteria itemCriteria;
11
    private ItemCriteria itemCriteria;
12
    private List<PayoutSlab> payoutSlabs;
12
    private List<PayoutSlab> payoutSlabs;
13
    private String itemCriteriaString;
13
    private String itemCriteriaString;
-
 
14
    private long achievedValue;
-
 
15
    private long shortValue;
-
 
16
    private PayoutSlab currentSlab;
-
 
17
    private PayoutSlab nextSlab;
14
 
18
 
-
 
19
    public long getShortValue() {
-
 
20
		return shortValue;
-
 
21
	}
-
 
22
 
-
 
23
 
-
 
24
	public void setShortValue(long shortValue) {
-
 
25
		this.shortValue = shortValue;
-
 
26
	}
-
 
27
 
-
 
28
 
-
 
29
	public PayoutSlab getCurrentSlab() {
-
 
30
		return currentSlab;
-
 
31
	}
-
 
32
 
-
 
33
 
-
 
34
	public void setCurrentSlab(PayoutSlab currentSlab) {
-
 
35
		this.currentSlab = currentSlab;
-
 
36
	}
-
 
37
 
-
 
38
 
-
 
39
	public PayoutSlab getNextSlab() {
-
 
40
		return nextSlab;
-
 
41
	}
-
 
42
 
-
 
43
 
-
 
44
	public void setNextSlab(PayoutSlab nextSlab) {
-
 
45
		this.nextSlab = nextSlab;
-
 
46
	}
-
 
47
 
-
 
48
 
15
    public ItemCriteria getItemCriteria() {
49
	public ItemCriteria getItemCriteria() {
16
        return itemCriteria;
50
        return itemCriteria;
17
    }
51
    }
18
 
52
 
19
 
53
 
20
 
-
 
21
	public AmountType getAmountType() {
54
	public AmountType getAmountType() {
22
		return amountType;
55
		return amountType;
23
	}
56
	}
24
 
57
 
25
 
58
 
Line 28... Line 61...
28
		this.amountType = amountType;
61
		this.amountType = amountType;
29
	}
62
	}
30
 
63
 
31
 
64
 
32
 
65
 
-
 
66
	public long getAchievedValue() {
-
 
67
		return achievedValue;
-
 
68
	}
-
 
69
 
-
 
70
 
-
 
71
	public void setAchievedValue(long achievedValue) {
-
 
72
		this.achievedValue = achievedValue;
-
 
73
	}
-
 
74
 
-
 
75
 
33
	public String getItemCriteriaString() {
76
	public String getItemCriteriaString() {
34
        return itemCriteriaString;
77
        return itemCriteriaString;
35
    }
78
    }
36
 
79
 
37
    public void setItemCriteriaString(String itemCriteriaString) {
80
    public void setItemCriteriaString(String itemCriteriaString) {
Line 41... Line 84...
41
    @Override
84
    @Override
42
	public int hashCode() {
85
	public int hashCode() {
43
		final int prime = 31;
86
		final int prime = 31;
44
		int result = 1;
87
		int result = 1;
45
		result = prime * result + ((amountType == null) ? 0 : amountType.hashCode());
88
		result = prime * result + ((amountType == null) ? 0 : amountType.hashCode());
-
 
89
		result = prime * result + ((currentSlab == null) ? 0 : currentSlab.hashCode());
46
		result = prime * result + ((itemCriteria == null) ? 0 : itemCriteria.hashCode());
90
		result = prime * result + ((itemCriteria == null) ? 0 : itemCriteria.hashCode());
47
		result = prime * result + ((itemCriteriaString == null) ? 0 : itemCriteriaString.hashCode());
91
		result = prime * result + ((itemCriteriaString == null) ? 0 : itemCriteriaString.hashCode());
48
		result = prime * result + ((payoutSlabs == null) ? 0 : payoutSlabs.hashCode());
-
 
49
		return result;
92
		return result;
50
	}
93
	}
51
 
94
 
52
 
95
 
53
 
96
 
Line 60... Line 103...
60
		if (getClass() != obj.getClass())
103
		if (getClass() != obj.getClass())
61
			return false;
104
			return false;
62
		ItemCriteriaPayout other = (ItemCriteriaPayout) obj;
105
		ItemCriteriaPayout other = (ItemCriteriaPayout) obj;
63
		if (amountType != other.amountType)
106
		if (amountType != other.amountType)
64
			return false;
107
			return false;
-
 
108
		if (currentSlab == null) {
-
 
109
			if (other.currentSlab != null)
-
 
110
				return false;
-
 
111
		} else if (!currentSlab.equals(other.currentSlab))
-
 
112
			return false;
65
		if (itemCriteria == null) {
113
		if (itemCriteria == null) {
66
			if (other.itemCriteria != null)
114
			if (other.itemCriteria != null)
67
				return false;
115
				return false;
68
		} else if (!itemCriteria.equals(other.itemCriteria))
116
		} else if (!itemCriteria.equals(other.itemCriteria))
69
			return false;
117
			return false;
70
		if (itemCriteriaString == null) {
118
		if (itemCriteriaString == null) {
71
			if (other.itemCriteriaString != null)
119
			if (other.itemCriteriaString != null)
72
				return false;
120
				return false;
73
		} else if (!itemCriteriaString.equals(other.itemCriteriaString))
121
		} else if (!itemCriteriaString.equals(other.itemCriteriaString))
74
			return false;
122
			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;
123
		return true;
81
	}
124
	}
82
 
125
 
83
    public void setItemCriteria(ItemCriteria itemCriteria) {
126
    public void setItemCriteria(ItemCriteria itemCriteria) {
84
        this.itemCriteria = itemCriteria;
127
        this.itemCriteria = itemCriteria;
Line 95... Line 138...
95
 
138
 
96
 
139
 
97
	@Override
140
	@Override
98
	public String toString() {
141
	public String toString() {
99
		return "ItemCriteriaPayout [amountType=" + amountType + ", itemCriteria=" + itemCriteria + ", payoutSlabs="
142
		return "ItemCriteriaPayout [amountType=" + amountType + ", itemCriteria=" + itemCriteria + ", payoutSlabs="
100
				+ payoutSlabs + ", itemCriteriaString=" + itemCriteriaString + "]";
143
				+ payoutSlabs + ", itemCriteriaString=" + itemCriteriaString + ", achievedValue=" + achievedValue
-
 
144
				+ ", shortValue=" + shortValue + ", currentSlab=" + currentSlab + ", nextSlab=" + nextSlab + "]";
101
	}
145
	}
102
    
146
    
103
    
147
    
104
    
148
    
105
    
149