Subversion Repositories SmartDukaan

Rev

Rev 21925 | Rev 23364 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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