Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
30044 tejbeer 1
package com.spice.profitmandi.dao.model;
2
 
3
public class PartnerBrandLimit {
4
 
5
	private int fofoId;
6
	private String brand;
7
	private Float brandLimit;
8
 
9
	public PartnerBrandLimit(int fofoId, String brand, Float brandLimit) {
10
		super();
11
		this.fofoId = fofoId;
12
		this.brand = brand;
13
		this.brandLimit = brandLimit;
14
	}
15
 
16
	public int getFofoId() {
17
		return fofoId;
18
	}
19
 
20
	public void setFofoId(int fofoId) {
21
		this.fofoId = fofoId;
22
	}
23
 
24
	public String getBrand() {
25
		return brand;
26
	}
27
 
28
	public void setBrand(String brand) {
29
		this.brand = brand;
30
	}
31
 
32
	public Float getBrandLimit() {
33
		return brandLimit;
34
	}
35
 
36
	public void setBrandLimit(Float brandLimit) {
37
		this.brandLimit = brandLimit;
38
	}
39
 
40
	@Override
41
	public int hashCode() {
42
		final int prime = 31;
43
		int result = 1;
44
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
45
		result = prime * result + Float.floatToIntBits(brandLimit);
46
		result = prime * result + fofoId;
47
		return result;
48
	}
49
 
50
	@Override
51
	public boolean equals(Object obj) {
52
		if (this == obj)
53
			return true;
54
		if (obj == null)
55
			return false;
56
		if (getClass() != obj.getClass())
57
			return false;
58
		PartnerBrandLimit other = (PartnerBrandLimit) obj;
59
		if (brand == null) {
60
			if (other.brand != null)
61
				return false;
62
		} else if (!brand.equals(other.brand))
63
			return false;
64
		if (Float.floatToIntBits(brandLimit) != Float.floatToIntBits(other.brandLimit))
65
			return false;
66
		if (fofoId != other.fofoId)
67
			return false;
68
		return true;
69
	}
70
 
71
	@Override
72
	public String toString() {
73
		return "PartnerBrandLimit [fofoId=" + fofoId + ", brand=" + brand + ", brandLimit=" + brandLimit + "]";
74
	}
75
 
76
}