Subversion Repositories SmartDukaan

Rev

Rev 21923 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
21894 ashik.ali 1
package com.spice.profitmandi.common.model;
2
 
3
public class GstRate {
28495 tejbeer 4
 
21894 ashik.ali 5
	private float igstRate;
6
	private float cgstRate;
7
	private float sgstRate;
8
	private String hsnCode;
28495 tejbeer 9
 
10
 
21894 ashik.ali 11
	public float getIgstRate() {
12
		return igstRate;
13
	}
14
	public void setIgstRate(float igstRate) {
15
		this.igstRate = igstRate;
16
	}
17
	public float getCgstRate() {
18
		return cgstRate;
19
	}
20
	public void setCgstRate(float cgstRate) {
21
		this.cgstRate = cgstRate;
22
	}
23
	public float getSgstRate() {
24
		return sgstRate;
25
	}
26
	public void setSgstRate(float sgstRate) {
27
		this.sgstRate = sgstRate;
28
	}
29
	public String getHsnCode() {
30
		return hsnCode;
31
	}
32
	public void setHsnCode(String hsnCode) {
33
		this.hsnCode = hsnCode;
34
	}
21923 ashik.ali 35
 
21894 ashik.ali 36
	@Override
21923 ashik.ali 37
	public int hashCode() {
38
		final int prime = 31;
39
		int result = 1;
40
		result = prime * result + Float.floatToIntBits(cgstRate);
41
		result = prime * result + ((hsnCode == null) ? 0 : hsnCode.hashCode());
42
		result = prime * result + Float.floatToIntBits(igstRate);
43
		result = prime * result + Float.floatToIntBits(sgstRate);
44
		return result;
45
	}
46
	@Override
47
	public boolean equals(Object obj) {
48
		if (this == obj)
49
			return true;
50
		if (obj == null)
51
			return false;
52
		if (getClass() != obj.getClass())
53
			return false;
54
		GstRate other = (GstRate) obj;
55
		if (Float.floatToIntBits(cgstRate) != Float.floatToIntBits(other.cgstRate))
56
			return false;
57
		if (hsnCode == null) {
58
			if (other.hsnCode != null)
59
				return false;
60
		} else if (!hsnCode.equals(other.hsnCode))
61
			return false;
62
		if (Float.floatToIntBits(igstRate) != Float.floatToIntBits(other.igstRate))
63
			return false;
64
		if (Float.floatToIntBits(sgstRate) != Float.floatToIntBits(other.sgstRate))
65
			return false;
66
		return true;
67
	}
68
	@Override
21894 ashik.ali 69
	public String toString() {
70
		return "GstRate [igstRate=" + igstRate + ", cgstRate=" + cgstRate + ", sgstRate=" + sgstRate + ", hsnCode="
71
				+ hsnCode + "]";
72
	}
73
 
74
}