Subversion Repositories SmartDukaan

Rev

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

Rev 27877 Rev 29785
Line 31... Line 31...
31
		}
31
		}
32
	}
32
	}
33
 
33
 
34
	@Override
34
	@Override
35
	public String toString() {
35
	public String toString() {
36
		return "PayoutSlab{" +
-
 
37
				"onwardsAmount=" + onwardsAmount +
36
		return "PayoutSlab [onwardsAmount=" + onwardsAmount + ", payoutAmount=" + payoutAmount + ", selected="
38
				", payoutAmount=" + payoutAmount +
37
				+ selected + "]";
39
				'}';
-
 
40
	}
38
	}
41
 
39
 
42
	public boolean isSelected() {
40
	public boolean isSelected() {
43
		return selected;
41
		return selected;
44
	}
42
	}
Line 46... Line 44...
46
	public void setSelected(boolean selected) {
44
	public void setSelected(boolean selected) {
47
		this.selected = selected;
45
		this.selected = selected;
48
	}
46
	}
49
 
47
 
50
	@Override
48
	@Override
51
	public boolean equals(Object o) {
49
	public boolean equals(Object obj) {
52
		if (this == o) return true;
50
		if (this == obj)
-
 
51
			return true;
-
 
52
		if (obj == null)
-
 
53
			return false;
53
		if (o == null || getClass() != o.getClass()) return false;
54
		if (getClass() != obj.getClass())
-
 
55
			return false;
54
		PayoutSlab that = (PayoutSlab) o;
56
		PayoutSlab other = (PayoutSlab) obj;
-
 
57
		if (onwardsAmount != other.onwardsAmount)
-
 
58
			return false;
55
		return onwardsAmount == that.onwardsAmount && Float.compare(that.payoutAmount, payoutAmount) == 0;
59
		if (Float.floatToIntBits(payoutAmount) != Float.floatToIntBits(other.payoutAmount))
-
 
60
			return false;
-
 
61
		return true;
56
	}
62
	}
57
 
63
 
58
	@Override
64
	@Override
59
	public int hashCode() {
65
	public int hashCode() {
-
 
66
		final int prime = 31;
-
 
67
		int result = 1;
-
 
68
		result = prime * result + onwardsAmount;
60
		return Objects.hash(onwardsAmount, payoutAmount);
69
		result = prime * result + Float.floatToIntBits(payoutAmount);
-
 
70
		return result;
61
	}
71
	}
62
}
72
}