Subversion Repositories SmartDukaan

Rev

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

Rev 22858 Rev 23364
Line 1... Line 1...
1
package com.spice.profitmandi.common.model;
1
package com.spice.profitmandi.common.model;
2
 
2
 
3
public class CustomPaymentOption {
3
public class CustomPaymentOption {
-
 
4
	
4
	private String type;
5
	private int paymentOptionId;
5
	private float amount;
6
	private float amount;
6
	public String getType() {
7
	public int getPaymentOptionId() {
7
		return type;
8
		return paymentOptionId;
8
	}
9
	}
9
	public void setType(String type) {
10
	public void setPaymentOptionId(int paymentOptionId) {
10
		this.type = type;
11
		this.paymentOptionId = paymentOptionId;
11
	}
12
	}
12
	public float getAmount() {
13
	public float getAmount() {
13
		return amount;
14
		return amount;
14
	}
15
	}
15
	public void setAmount(float amount) {
16
	public void setAmount(float amount) {
16
		this.amount = amount;
17
		this.amount = amount;
17
	}
18
	}
18
	
-
 
19
	
-
 
20
	@Override
19
	@Override
21
	public int hashCode() {
20
	public int hashCode() {
22
		final int prime = 31;
21
		final int prime = 31;
23
		int result = 1;
22
		int result = 1;
24
		result = prime * result + Float.floatToIntBits(amount);
23
		result = prime * result + Float.floatToIntBits(amount);
25
		result = prime * result + ((type == null) ? 0 : type.hashCode());
24
		result = prime * result + paymentOptionId;
26
		return result;
25
		return result;
27
	}
26
	}
28
	@Override
27
	@Override
29
	public boolean equals(Object obj) {
28
	public boolean equals(Object obj) {
30
		if (this == obj)
29
		if (this == obj)
Line 34... Line 33...
34
		if (getClass() != obj.getClass())
33
		if (getClass() != obj.getClass())
35
			return false;
34
			return false;
36
		CustomPaymentOption other = (CustomPaymentOption) obj;
35
		CustomPaymentOption other = (CustomPaymentOption) obj;
37
		if (Float.floatToIntBits(amount) != Float.floatToIntBits(other.amount))
36
		if (Float.floatToIntBits(amount) != Float.floatToIntBits(other.amount))
38
			return false;
37
			return false;
39
		if (type != other.type)
38
		if (paymentOptionId != other.paymentOptionId)
40
			return false;
39
			return false;
41
		return true;
40
		return true;
42
	}
41
	}
43
	@Override
42
	@Override
44
	public String toString() {
43
	public String toString() {
45
		return "CustomPaymentOption [type=" + type + ", amount=" + amount + "]";
44
		return "CustomPaymentOption [paymentOptionId=" + paymentOptionId + ", amount=" + amount + "]";
46
	}
45
	}
47
	
46
	
48
	
-
 
49
}
47
}