Subversion Repositories SmartDukaan

Rev

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

Rev 22549 Rev 22579
Line 1... Line 1...
1
package com.spice.profitmandi.common.model;
1
package com.spice.profitmandi.common.model;
2
 
2
 
3
public class MopPriceModel {
3
public class PriceModel {
4
	private boolean mop;
4
	private boolean mop;
5
	private float price;
5
	private float price;
-
 
6
	private float maxDiscountAmount;
6
	
7
	
7
	public boolean isMop() {
8
	public boolean isMop() {
8
		return mop;
9
		return mop;
9
	}
10
	}
10
	public void setMop(boolean mop) {
11
	public void setMop(boolean mop) {
Line 14... Line 15...
14
		return price;
15
		return price;
15
	}
16
	}
16
	public void setPrice(float price) {
17
	public void setPrice(float price) {
17
		this.price = price;
18
		this.price = price;
18
	}
19
	}
-
 
20
	
-
 
21
	public float getMaxDiscountAmount() {
-
 
22
		return maxDiscountAmount;
-
 
23
	}
-
 
24
	public void setMaxDiscountAmount(float maxDiscountAmount) {
-
 
25
		this.maxDiscountAmount = maxDiscountAmount;
-
 
26
	}
19
	@Override
27
	@Override
20
	public int hashCode() {
28
	public int hashCode() {
21
		final int prime = 31;
29
		final int prime = 31;
22
		int result = 1;
30
		int result = 1;
23
		result = prime * result + (mop ? 1231 : 1237);
31
		result = prime * result + (mop ? 1231 : 1237);
Line 30... Line 38...
30
			return true;
38
			return true;
31
		if (obj == null)
39
		if (obj == null)
32
			return false;
40
			return false;
33
		if (getClass() != obj.getClass())
41
		if (getClass() != obj.getClass())
34
			return false;
42
			return false;
35
		MopPriceModel other = (MopPriceModel) obj;
43
		PriceModel other = (PriceModel) obj;
36
		if (mop != other.mop)
44
		if (mop != other.mop)
37
			return false;
45
			return false;
38
		if (Float.floatToIntBits(price) != Float.floatToIntBits(other.price))
46
		if (Float.floatToIntBits(price) != Float.floatToIntBits(other.price))
39
			return false;
47
			return false;
-
 
48
		if (Float.floatToIntBits(maxDiscountAmount) != Float.floatToIntBits(other.maxDiscountAmount))
-
 
49
			return false;
40
		return true;
50
		return true;
41
	}
51
	}
42
	@Override
52
	@Override
43
	public String toString() {
53
	public String toString() {
44
		return "MopPriceModel [mop=" + mop + ", price=" + price + "]";
54
		return "PriceModel [mop=" + mop + ", price=" + price + "maxDiscountAmount=" +maxDiscountAmount + "]";
45
	}
55
	}
46
	
56
	
47
}
57
}