Subversion Repositories SmartDukaan

Rev

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

Rev 21924 Rev 22009
Line 76... Line 76...
76
	public void setAmount(float amount) {
76
	public void setAmount(float amount) {
77
		this.amount = amount;
77
		this.amount = amount;
78
	}
78
	}
79
	
79
	
80
	
80
	
-
 
81
	
81
	@Override
82
	@Override
82
	public int hashCode() {
83
	public int hashCode() {
83
		final int prime = 31;
84
		final int prime = 31;
84
		int result = 1;
85
		int result = 1;
85
		result = prime * result + Float.floatToIntBits(amount);
-
 
86
		result = prime * result + id;
86
		result = prime * result + id;
87
		result = prime * result + orderId;
-
 
88
		result = prime * result + ((type == null) ? 0 : type.hashCode());
-
 
89
		return result;
87
		return result;
90
	}
88
	}
91
	@Override
89
	@Override
92
	public boolean equals(Object obj) {
90
	public boolean equals(Object obj) {
93
		if (this == obj)
91
		if (this == obj)
Line 95... Line 93...
95
		if (obj == null)
93
		if (obj == null)
96
			return false;
94
			return false;
97
		if (getClass() != obj.getClass())
95
		if (getClass() != obj.getClass())
98
			return false;
96
			return false;
99
		PaymentOption other = (PaymentOption) obj;
97
		PaymentOption other = (PaymentOption) obj;
100
		if (Float.floatToIntBits(amount) != Float.floatToIntBits(other.amount))
-
 
101
			return false;
-
 
102
		if (id != other.id)
98
		if (id != other.id)
103
			return false;
99
			return false;
104
		if (orderId != other.orderId)
-
 
105
			return false;
-
 
106
		if (type != other.type)
-
 
107
			return false;
-
 
108
		return true;
100
		return true;
109
	}
101
	}
110
	@Override
102
	@Override
111
	public String toString() {
103
	public String toString() {
112
		return "PaymentOption [id=" + id + ", orderId=" + orderId + ", type=" + type + ", amount=" + amount + "]";
104
		return "PaymentOption [id=" + id + ", orderId=" + orderId + ", type=" + type + ", amount=" + amount + "]";