Subversion Repositories SmartDukaan

Rev

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

Rev 32816 Rev 33399
Line 4... Line 4...
4
import java.util.Objects;
4
import java.util.Objects;
5
import java.util.Set;
5
import java.util.Set;
6
 
6
 
7
public class CustomFofoOrderItem {
7
public class CustomFofoOrderItem {
8
	private int itemId;
8
	private int itemId;
-
 
9
	private int poiId;
9
	private List<String> customSerialNumbers;
10
	private List<String> customSerialNumbers;
10
	private int quantity;
11
	private int quantity;
11
	private float sellingPrice;
12
	private float sellingPrice;
12
	private float discountAmount;
13
	private float discountAmount;
13
	private boolean prebookingOrder;
14
	private boolean prebookingOrder;
Line 17... Line 18...
17
		return itemId;
18
		return itemId;
18
	}
19
	}
19
	public void setItemId(int itemId) {
20
	public void setItemId(int itemId) {
20
		this.itemId = itemId;
21
		this.itemId = itemId;
21
	}
22
	}
-
 
23
	public int getPoiId() {return poiId;}
-
 
24
	public void setPoiId(int poiId) {this.poiId = poiId;}
22
	public int getQuantity() {
25
	public int getQuantity() {
23
		return quantity;
26
		return quantity;
24
	}
27
	}
25
	public void setQuantity(int quantity) {
28
	public void setQuantity(int quantity) {
26
		this.quantity = quantity;
29
		this.quantity = quantity;
Line 52... Line 55...
52
 
55
 
53
	@Override
56
	@Override
54
	public String toString() {
57
	public String toString() {
55
		return "CustomFofoOrderItem{" +
58
		return "CustomFofoOrderItem{" +
56
				"itemId=" + itemId +
59
				"itemId=" + itemId +
-
 
60
				"poiId=" + poiId +
57
				", customSerialNumbers=" + customSerialNumbers +
61
				", customSerialNumbers=" + customSerialNumbers +
58
				", quantity=" + quantity +
62
				", quantity=" + quantity +
59
				", sellingPrice=" + sellingPrice +
63
				", sellingPrice=" + sellingPrice +
60
				", discountAmount=" + discountAmount +
64
				", discountAmount=" + discountAmount +
61
				", prebookingOrder=" + prebookingOrder +
65
				", prebookingOrder=" + prebookingOrder +
Line 66... Line 70...
66
	@Override
70
	@Override
67
	public boolean equals(Object o) {
71
	public boolean equals(Object o) {
68
		if (this == o) return true;
72
		if (this == o) return true;
69
		if (o == null || getClass() != o.getClass()) return false;
73
		if (o == null || getClass() != o.getClass()) return false;
70
		CustomFofoOrderItem that = (CustomFofoOrderItem) o;
74
		CustomFofoOrderItem that = (CustomFofoOrderItem) o;
71
		return itemId == that.itemId && quantity == that.quantity && Float.compare(sellingPrice, that.sellingPrice) == 0 && Float.compare(discountAmount, that.discountAmount) == 0 && prebookingOrder == that.prebookingOrder && Objects.equals(customSerialNumbers, that.customSerialNumbers) && Objects.equals(serialNumberDetails, that.serialNumberDetails);
75
		return itemId == that.itemId && poiId == that.poiId && quantity == that.quantity && Float.compare(sellingPrice, that.sellingPrice) == 0 && Float.compare(discountAmount, that.discountAmount) == 0 && prebookingOrder == that.prebookingOrder && Objects.equals(customSerialNumbers, that.customSerialNumbers) && Objects.equals(serialNumberDetails, that.serialNumberDetails);
72
	}
76
	}
73
 
77
 
74
	@Override
78
	@Override
75
	public int hashCode() {
79
	public int hashCode() {
76
		return Objects.hash(itemId, customSerialNumbers, quantity, sellingPrice, discountAmount, prebookingOrder, serialNumberDetails);
80
		return Objects.hash(itemId,poiId, customSerialNumbers, quantity, sellingPrice, discountAmount, prebookingOrder, serialNumberDetails);
77
	}
81
	}
78
 
82
 
79
	public List<String> getCustomSerialNumbers() {
83
	public List<String> getCustomSerialNumbers() {
80
		return customSerialNumbers;
84
		return customSerialNumbers;
81
	}
85
	}