Subversion Repositories SmartDukaan

Rev

Rev 21923 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
21543 ashik.ali 1
package com.spice.profitmandi.common.model;
2
 
3
import java.util.Set;
4
 
5
public class ShippedOrder {
6
	private String status;
7
	private BillingDetail billingDetail;
23074 ashik.ali 8
	private ShippingDetail shippingDetail;
21543 ashik.ali 9
	private Set<CustomLineItem> lineItems;
10
	public Set<CustomLineItem> getLineItems() {
11
		return lineItems;
12
	}
13
	public void setLineItems(Set<CustomLineItem> lineItems) {
14
		this.lineItems = lineItems;
15
	}
16
	public BillingDetail getBillingDetail() {
17
		return billingDetail;
18
	}
19
	public void setBillingDetail(BillingDetail billingDetail) {
20
		this.billingDetail = billingDetail;
21
	}
23074 ashik.ali 22
	public ShippingDetail getShippingDetail() {
23
		return shippingDetail;
21543 ashik.ali 24
	}
23074 ashik.ali 25
	public void setShipppingDetail(ShippingDetail shippingDetail) {
26
		this.shippingDetail = shippingDetail;
21543 ashik.ali 27
	}
28
	public String getStatus() {
29
		return status;
30
	}
31
	public void setStatus(String status) {
32
		this.status = status;
33
	}
21923 ashik.ali 34
 
35
 
21600 ashik.ali 36
	@Override
21923 ashik.ali 37
	public int hashCode() {
38
		final int prime = 31;
39
		int result = 1;
40
		result = prime * result + ((billingDetail == null) ? 0 : billingDetail.hashCode());
41
		result = prime * result + ((lineItems == null) ? 0 : lineItems.hashCode());
23074 ashik.ali 42
		result = prime * result + ((shippingDetail == null) ? 0 : shippingDetail.hashCode());
21923 ashik.ali 43
		result = prime * result + ((status == null) ? 0 : status.hashCode());
44
		return result;
45
	}
46
	@Override
47
	public boolean equals(Object obj) {
48
		if (this == obj)
49
			return true;
50
		if (obj == null)
51
			return false;
52
		if (getClass() != obj.getClass())
53
			return false;
54
		ShippedOrder other = (ShippedOrder) obj;
55
		if (billingDetail == null) {
56
			if (other.billingDetail != null)
57
				return false;
58
		} else if (!billingDetail.equals(other.billingDetail))
59
			return false;
60
		if (lineItems == null) {
61
			if (other.lineItems != null)
62
				return false;
63
		} else if (!lineItems.equals(other.lineItems))
64
			return false;
23074 ashik.ali 65
		if (shippingDetail == null) {
66
			if (other.shippingDetail != null)
21923 ashik.ali 67
				return false;
23074 ashik.ali 68
		} else if (!shippingDetail.equals(other.shippingDetail))
21923 ashik.ali 69
			return false;
70
		if (status == null) {
71
			if (other.status != null)
72
				return false;
73
		} else if (!status.equals(other.status))
74
			return false;
75
		return true;
76
	}
77
	@Override
21600 ashik.ali 78
	public String toString() {
23074 ashik.ali 79
		return "ShippedOrder [status=" + status + ", billingDetail=" + billingDetail + ", shippingDetail="
80
				+ shippingDetail + ", lineItems=" + lineItems + "]";
21600 ashik.ali 81
	}
82
 
83
 
21543 ashik.ali 84
}