Subversion Repositories SmartDukaan

Rev

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

Rev 21894 Rev 21923
Line 27... Line 27...
27
		return hsnCode;
27
		return hsnCode;
28
	}
28
	}
29
	public void setHsnCode(String hsnCode) {
29
	public void setHsnCode(String hsnCode) {
30
		this.hsnCode = hsnCode;
30
		this.hsnCode = hsnCode;
31
	}
31
	}
-
 
32
	
-
 
33
	@Override
-
 
34
	public int hashCode() {
-
 
35
		final int prime = 31;
-
 
36
		int result = 1;
-
 
37
		result = prime * result + Float.floatToIntBits(cgstRate);
-
 
38
		result = prime * result + ((hsnCode == null) ? 0 : hsnCode.hashCode());
-
 
39
		result = prime * result + Float.floatToIntBits(igstRate);
-
 
40
		result = prime * result + Float.floatToIntBits(sgstRate);
-
 
41
		return result;
-
 
42
	}
-
 
43
	@Override
-
 
44
	public boolean equals(Object obj) {
-
 
45
		if (this == obj)
-
 
46
			return true;
-
 
47
		if (obj == null)
-
 
48
			return false;
-
 
49
		if (getClass() != obj.getClass())
-
 
50
			return false;
-
 
51
		GstRate other = (GstRate) obj;
-
 
52
		if (Float.floatToIntBits(cgstRate) != Float.floatToIntBits(other.cgstRate))
-
 
53
			return false;
-
 
54
		if (hsnCode == null) {
-
 
55
			if (other.hsnCode != null)
-
 
56
				return false;
-
 
57
		} else if (!hsnCode.equals(other.hsnCode))
-
 
58
			return false;
-
 
59
		if (Float.floatToIntBits(igstRate) != Float.floatToIntBits(other.igstRate))
-
 
60
			return false;
-
 
61
		if (Float.floatToIntBits(sgstRate) != Float.floatToIntBits(other.sgstRate))
-
 
62
			return false;
-
 
63
		return true;
-
 
64
	}
32
	@Override
65
	@Override
33
	public String toString() {
66
	public String toString() {
34
		return "GstRate [igstRate=" + igstRate + ", cgstRate=" + cgstRate + ", sgstRate=" + sgstRate + ", hsnCode="
67
		return "GstRate [igstRate=" + igstRate + ", cgstRate=" + cgstRate + ", sgstRate=" + sgstRate + ", hsnCode="
35
				+ hsnCode + "]";
68
				+ hsnCode + "]";
36
	}
69
	}