Subversion Repositories SmartDukaan

Rev

Rev 21923 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21923 Rev 23074
Line 3... Line 3...
3
import java.util.Set;
3
import java.util.Set;
4
 
4
 
5
public class ShippedOrder {
5
public class ShippedOrder {
6
	private String status;
6
	private String status;
7
	private BillingDetail billingDetail;
7
	private BillingDetail billingDetail;
8
	private ShipppingDetail shipppingDetail;
8
	private ShippingDetail shippingDetail;
9
	private Set<CustomLineItem> lineItems;
9
	private Set<CustomLineItem> lineItems;
10
	public Set<CustomLineItem> getLineItems() {
10
	public Set<CustomLineItem> getLineItems() {
11
		return lineItems;
11
		return lineItems;
12
	}
12
	}
13
	public void setLineItems(Set<CustomLineItem> lineItems) {
13
	public void setLineItems(Set<CustomLineItem> lineItems) {
Line 17... Line 17...
17
		return billingDetail;
17
		return billingDetail;
18
	}
18
	}
19
	public void setBillingDetail(BillingDetail billingDetail) {
19
	public void setBillingDetail(BillingDetail billingDetail) {
20
		this.billingDetail = billingDetail;
20
		this.billingDetail = billingDetail;
21
	}
21
	}
22
	public ShipppingDetail getShipppingDetail() {
22
	public ShippingDetail getShippingDetail() {
23
		return shipppingDetail;
23
		return shippingDetail;
24
	}
24
	}
25
	public void setShipppingDetail(ShipppingDetail shipppingDetail) {
25
	public void setShipppingDetail(ShippingDetail shippingDetail) {
26
		this.shipppingDetail = shipppingDetail;
26
		this.shippingDetail = shippingDetail;
27
	}
27
	}
28
	public String getStatus() {
28
	public String getStatus() {
29
		return status;
29
		return status;
30
	}
30
	}
31
	public void setStatus(String status) {
31
	public void setStatus(String status) {
Line 37... Line 37...
37
	public int hashCode() {
37
	public int hashCode() {
38
		final int prime = 31;
38
		final int prime = 31;
39
		int result = 1;
39
		int result = 1;
40
		result = prime * result + ((billingDetail == null) ? 0 : billingDetail.hashCode());
40
		result = prime * result + ((billingDetail == null) ? 0 : billingDetail.hashCode());
41
		result = prime * result + ((lineItems == null) ? 0 : lineItems.hashCode());
41
		result = prime * result + ((lineItems == null) ? 0 : lineItems.hashCode());
42
		result = prime * result + ((shipppingDetail == null) ? 0 : shipppingDetail.hashCode());
42
		result = prime * result + ((shippingDetail == null) ? 0 : shippingDetail.hashCode());
43
		result = prime * result + ((status == null) ? 0 : status.hashCode());
43
		result = prime * result + ((status == null) ? 0 : status.hashCode());
44
		return result;
44
		return result;
45
	}
45
	}
46
	@Override
46
	@Override
47
	public boolean equals(Object obj) {
47
	public boolean equals(Object obj) {
Line 60... Line 60...
60
		if (lineItems == null) {
60
		if (lineItems == null) {
61
			if (other.lineItems != null)
61
			if (other.lineItems != null)
62
				return false;
62
				return false;
63
		} else if (!lineItems.equals(other.lineItems))
63
		} else if (!lineItems.equals(other.lineItems))
64
			return false;
64
			return false;
65
		if (shipppingDetail == null) {
65
		if (shippingDetail == null) {
66
			if (other.shipppingDetail != null)
66
			if (other.shippingDetail != null)
67
				return false;
67
				return false;
68
		} else if (!shipppingDetail.equals(other.shipppingDetail))
68
		} else if (!shippingDetail.equals(other.shippingDetail))
69
			return false;
69
			return false;
70
		if (status == null) {
70
		if (status == null) {
71
			if (other.status != null)
71
			if (other.status != null)
72
				return false;
72
				return false;
73
		} else if (!status.equals(other.status))
73
		} else if (!status.equals(other.status))
74
			return false;
74
			return false;
75
		return true;
75
		return true;
76
	}
76
	}
77
	@Override
77
	@Override
78
	public String toString() {
78
	public String toString() {
79
		return "ShippedOrder [status=" + status + ", billingDetail=" + billingDetail + ", shipppingDetail="
79
		return "ShippedOrder [status=" + status + ", billingDetail=" + billingDetail + ", shippingDetail="
80
				+ shipppingDetail + ", lineItems=" + lineItems + "]";
80
				+ shippingDetail + ", lineItems=" + lineItems + "]";
81
	}
81
	}
82
	
82
	
83
	
83
	
84
}
84
}