Subversion Repositories SmartDukaan

Rev

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

Rev 24428 Rev 28162
Line 185... Line 185...
185
 
185
 
186
	@Override
186
	@Override
187
	public int hashCode() {
187
	public int hashCode() {
188
		final int prime = 31;
188
		final int prime = 31;
189
		int result = 1;
189
		int result = 1;
190
		result = prime * result + Float.floatToIntBits(actualPrice);
-
 
191
		result = prime * result + cartId;
190
		result = prime * result + cartId;
192
		result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());
-
 
193
		result = prime * result + Float.floatToIntBits(dataProtectionAmount);
-
 
194
		result = prime * result + dataProtectionInsurer;
-
 
195
		result = prime * result + ((dealText == null) ? 0 : dealText.hashCode());
-
 
196
		result = prime * result + Float.floatToIntBits(discountedPrice);
-
 
197
		result = prime * result + estimate;
-
 
198
		result = prime * result + Float.floatToIntBits(insuranceAmount);
-
 
199
		result = prime * result + insurer;
-
 
200
		result = prime * result + itemId;
191
		result = prime * result + itemId;
201
		result = prime * result + lineStatus;
-
 
202
		result = prime * result + quantity;
-
 
203
		result = prime * result + ((updateTimestapm == null) ? 0 : updateTimestapm.hashCode());
-
 
204
		return result;
192
		return result;
205
	}
193
	}
206
 
194
 
207
	@Override
195
	@Override
208
	public boolean equals(Object obj) {
196
	public boolean equals(Object obj) {
Line 211... Line 199...
211
		if (obj == null)
199
		if (obj == null)
212
			return false;
200
			return false;
213
		if (getClass() != obj.getClass())
201
		if (getClass() != obj.getClass())
214
			return false;
202
			return false;
215
		CartLine other = (CartLine) obj;
203
		CartLine other = (CartLine) obj;
216
		if (Float.floatToIntBits(actualPrice) != Float.floatToIntBits(other.actualPrice))
-
 
217
			return false;
-
 
218
		if (cartId != other.cartId)
204
		if (cartId != other.cartId)
219
			return false;
205
			return false;
220
		if (createTimestamp == null) {
-
 
221
			if (other.createTimestamp != null)
-
 
222
				return false;
-
 
223
		} else if (!createTimestamp.equals(other.createTimestamp))
-
 
224
			return false;
-
 
225
		if (Float.floatToIntBits(dataProtectionAmount) != Float.floatToIntBits(other.dataProtectionAmount))
-
 
226
			return false;
-
 
227
		if (dataProtectionInsurer != other.dataProtectionInsurer)
-
 
228
			return false;
-
 
229
		if (dealText == null) {
-
 
230
			if (other.dealText != null)
-
 
231
				return false;
-
 
232
		} else if (!dealText.equals(other.dealText))
-
 
233
			return false;
-
 
234
		if (Float.floatToIntBits(discountedPrice) != Float.floatToIntBits(other.discountedPrice))
-
 
235
			return false;
-
 
236
		if (estimate != other.estimate)
-
 
237
			return false;
-
 
238
		if (Float.floatToIntBits(insuranceAmount) != Float.floatToIntBits(other.insuranceAmount))
-
 
239
			return false;
-
 
240
		if (insurer != other.insurer)
-
 
241
			return false;
-
 
242
		if (itemId != other.itemId)
206
		if (itemId != other.itemId)
243
			return false;
207
			return false;
244
		if (lineStatus != other.lineStatus)
-
 
245
			return false;
-
 
246
		if (quantity != other.quantity)
-
 
247
			return false;
-
 
248
		if (updateTimestapm == null) {
-
 
249
			if (other.updateTimestapm != null)
-
 
250
				return false;
-
 
251
		} else if (!updateTimestapm.equals(other.updateTimestapm))
-
 
252
			return false;
-
 
253
		return true;
208
		return true;
254
	}
209
	}
255
	
210
	
256
	
211
	
257
}
212
}