Subversion Repositories SmartDukaan

Rev

Rev 23821 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23821 Rev 24052
Line 2... Line 2...
2
 
2
 
3
public class PriceModel {
3
public class PriceModel {
4
	private boolean mop;
4
	private boolean mop;
5
	private float price;
5
	private float price;
6
	private float purchasePrice;
6
	private float purchasePrice;
-
 
7
	private float mrp;
7
	
8
	
8
	
9
	
9
	public float getPurchasePrice() {
10
	public float getPurchasePrice() {
10
		return purchasePrice;
11
		return purchasePrice;
11
	}
12
	}
Line 31... Line 32...
31
		return maxDiscountAmount;
32
		return maxDiscountAmount;
32
	}
33
	}
33
	public void setMaxDiscountAmount(float maxDiscountAmount) {
34
	public void setMaxDiscountAmount(float maxDiscountAmount) {
34
		this.maxDiscountAmount = maxDiscountAmount;
35
		this.maxDiscountAmount = maxDiscountAmount;
35
	}
36
	}
-
 
37
	
-
 
38
	
-
 
39
	public float getMrp() {
-
 
40
		return mrp;
-
 
41
	}
-
 
42
	public void setMrp(float mrp) {
-
 
43
		this.mrp = mrp;
-
 
44
	}
36
	@Override
45
	@Override
37
	public int hashCode() {
46
	public int hashCode() {
38
		final int prime = 31;
47
		final int prime = 31;
39
		int result = 1;
48
		int result = 1;
40
		result = prime * result + (mop ? 1231 : 1237);
49
		result = prime * result + (mop ? 1231 : 1237);
Line 58... Line 67...
58
			return false;
67
			return false;
59
		return true;
68
		return true;
60
	}
69
	}
61
	@Override
70
	@Override
62
	public String toString() {
71
	public String toString() {
63
		return "PriceModel [mop=" + mop + ", price=" + price + ", purchasePrice=" + purchasePrice
72
		return "PriceModel [mop=" + mop + ", price=" + price + ", purchasePrice=" + purchasePrice + ", mrp=" + mrp
64
				+ ", maxDiscountAmount=" + maxDiscountAmount + "]";
73
				+ ", maxDiscountAmount=" + maxDiscountAmount + "]";
65
	}
74
	}
66
	
75
	
67
}
76
}