Subversion Repositories SmartDukaan

Rev

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

Rev 21924 Rev 22009
Line 178... Line 178...
178
	public void setFofoLineItemSerialNumbers(Set<FofoLineItemSerialNumber> fofoLineItemSerialNumbers) {
178
	public void setFofoLineItemSerialNumbers(Set<FofoLineItemSerialNumber> fofoLineItemSerialNumbers) {
179
		this.fofoLineItemSerialNumbers = fofoLineItemSerialNumbers;
179
		this.fofoLineItemSerialNumbers = fofoLineItemSerialNumbers;
180
	}
180
	}
181
	
181
	
182
	
182
	
-
 
183
	
183
	@Override
184
	@Override
184
	public int hashCode() {
185
	public int hashCode() {
185
		final int prime = 31;
186
		final int prime = 31;
186
		int result = 1;
187
		int result = 1;
187
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
-
 
188
		result = prime * result + Float.floatToIntBits(cgstRate);
-
 
189
		result = prime * result + ((color == null) ? 0 : color.hashCode());
-
 
190
		result = prime * result + Float.floatToIntBits(cost);
-
 
191
		result = prime * result + Float.floatToIntBits(dp);
-
 
192
		result = prime * result + ((fofoLineItemSerialNumbers == null) ? 0 : fofoLineItemSerialNumbers.hashCode());
-
 
193
		result = prime * result + ((hsnCode == null) ? 0 : hsnCode.hashCode());
-
 
194
		result = prime * result + id;
188
		result = prime * result + id;
195
		result = prime * result + Float.floatToIntBits(igstRate);
-
 
196
		result = prime * result + itemId;
-
 
197
		result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
-
 
198
		result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());
-
 
199
		result = prime * result + orderId;
-
 
200
		result = prime * result + quantity;
-
 
201
		result = prime * result + Float.floatToIntBits(sellingPrice);
-
 
202
		result = prime * result + Float.floatToIntBits(sgstRate);
-
 
203
		return result;
189
		return result;
204
	}
190
	}
205
	@Override
191
	@Override
206
	public boolean equals(Object obj) {
192
	public boolean equals(Object obj) {
207
		if (this == obj)
193
		if (this == obj)
Line 209... Line 195...
209
		if (obj == null)
195
		if (obj == null)
210
			return false;
196
			return false;
211
		if (getClass() != obj.getClass())
197
		if (getClass() != obj.getClass())
212
			return false;
198
			return false;
213
		FofoLineItem other = (FofoLineItem) obj;
199
		FofoLineItem other = (FofoLineItem) obj;
214
		if (brand == null) {
-
 
215
			if (other.brand != null)
-
 
216
				return false;
-
 
217
		} else if (!brand.equals(other.brand))
-
 
218
			return false;
-
 
219
		if (Float.floatToIntBits(cgstRate) != Float.floatToIntBits(other.cgstRate))
-
 
220
			return false;
-
 
221
		if (color == null) {
-
 
222
			if (other.color != null)
-
 
223
				return false;
-
 
224
		} else if (!color.equals(other.color))
-
 
225
			return false;
-
 
226
		if (Float.floatToIntBits(cost) != Float.floatToIntBits(other.cost))
-
 
227
			return false;
-
 
228
		if (Float.floatToIntBits(dp) != Float.floatToIntBits(other.dp))
-
 
229
			return false;
-
 
230
		if (fofoLineItemSerialNumbers == null) {
-
 
231
			if (other.fofoLineItemSerialNumbers != null)
-
 
232
				return false;
-
 
233
		} else if (!fofoLineItemSerialNumbers.equals(other.fofoLineItemSerialNumbers))
-
 
234
			return false;
-
 
235
		if (hsnCode == null) {
-
 
236
			if (other.hsnCode != null)
-
 
237
				return false;
-
 
238
		} else if (!hsnCode.equals(other.hsnCode))
-
 
239
			return false;
-
 
240
		if (id != other.id)
200
		if (id != other.id)
241
			return false;
201
			return false;
242
		if (Float.floatToIntBits(igstRate) != Float.floatToIntBits(other.igstRate))
-
 
243
			return false;
-
 
244
		if (itemId != other.itemId)
-
 
245
			return false;
-
 
246
		if (modelName == null) {
-
 
247
			if (other.modelName != null)
-
 
248
				return false;
-
 
249
		} else if (!modelName.equals(other.modelName))
-
 
250
			return false;
-
 
251
		if (modelNumber == null) {
-
 
252
			if (other.modelNumber != null)
-
 
253
				return false;
-
 
254
		} else if (!modelNumber.equals(other.modelNumber))
-
 
255
			return false;
-
 
256
		if (orderId != other.orderId)
-
 
257
			return false;
-
 
258
		if (quantity != other.quantity)
-
 
259
			return false;
-
 
260
		if (Float.floatToIntBits(sellingPrice) != Float.floatToIntBits(other.sellingPrice))
-
 
261
			return false;
-
 
262
		if (Float.floatToIntBits(sgstRate) != Float.floatToIntBits(other.sgstRate))
-
 
263
			return false;
-
 
264
		return true;
202
		return true;
265
	}
203
	}
266
	@Override
204
	@Override
267
	public String toString() {
205
	public String toString() {
268
		return "FofoLineItem [id=" + id + ", orderId=" + orderId + ", itemId=" + itemId + ", quantity=" + quantity
206
		return "FofoLineItem [id=" + id + ", orderId=" + orderId + ", itemId=" + itemId + ", quantity=" + quantity