Subversion Repositories SmartDukaan

Rev

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

Rev 21924 Rev 22009
Line 42... Line 42...
42
	}
42
	}
43
	public void setRefundable_amount(int refundable_amount) {
43
	public void setRefundable_amount(int refundable_amount) {
44
		this.refundable_amount = refundable_amount;
44
		this.refundable_amount = refundable_amount;
45
	}
45
	}
46
	
46
	
-
 
47
	
47
	@Override
48
	@Override
48
	public int hashCode() {
49
	public int hashCode() {
49
		final int prime = 31;
50
		final int prime = 31;
50
		int result = 1;
51
		int result = 1;
51
		result = prime * result + amount;
-
 
52
		result = prime * result + id;
52
		result = prime * result + id;
53
		result = prime * result + refundable_amount;
-
 
54
		result = prime * result + userId;
-
 
55
		return result;
53
		return result;
56
	}
54
	}
57
	@Override
55
	@Override
58
	public boolean equals(Object obj) {
56
	public boolean equals(Object obj) {
59
		if (this == obj)
57
		if (this == obj)
Line 61... Line 59...
61
		if (obj == null)
59
		if (obj == null)
62
			return false;
60
			return false;
63
		if (getClass() != obj.getClass())
61
		if (getClass() != obj.getClass())
64
			return false;
62
			return false;
65
		UserWallet other = (UserWallet) obj;
63
		UserWallet other = (UserWallet) obj;
66
		if (amount != other.amount)
-
 
67
			return false;
-
 
68
		if (id != other.id)
64
		if (id != other.id)
69
			return false;
65
			return false;
70
		if (refundable_amount != other.refundable_amount)
-
 
71
			return false;
-
 
72
		if (userId != other.userId)
-
 
73
			return false;
-
 
74
		return true;
66
		return true;
75
	}
67
	}
76
	@Override
68
	@Override
77
	public String toString() {
69
	public String toString() {
78
		return "UserWallet [id=" + id + ", userId=" + userId + ", amount=" + amount + ", refundable_amount="
70
		return "UserWallet [id=" + id + ", userId=" + userId + ", amount=" + amount + ", refundable_amount="